Question bank › Trie
Dsa Trie Hard

Word Maze Navigator

You are given a 2D grid of characters and a dictionary of words. Implement a function to find all words from the dictionary that can be formed by navigating adjacent cells (horizontally or vertically) in the grid. Each cell can be used only once for each word. Words must be returned in lexicographical order. Input consists of the grid size followed by grid characters and then dictionary words. Output should be a newline-separated list of found words. Example: Input: 2 2 ab cd ab ac dc Output: ab

Key concepts

triepathfindingbacktracking

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.