Question bank › Backtracking
Dsa Backtracking Medium

Word Maze

Given a grid of letters and a list of words, determine which words can be formed by starting from any cell and moving to adjacent cells. A word can be formed by connecting letters horizontally, vertically, or diagonally. Print each found word on a new line. Example Input: 3 3 A B C D E F G H I 3 ABE DHI XYZ Example Output: ABE DHI

Key concepts

backtrackingsearchwords

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 InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.