Answer: Uber, Recently Asked Online Assessments in May, 2024 | Word Search | Backtrackin
Answer · Posted Jun 2026
Solution 1: Word Search — Backtracking with DFS Approach We traverse the grid and start a Depth First Search (DFS) from any cell that matches the first letter of our target word. At each DFS step, we check if the current character matches the character at the current index of the word. If we successfully match all characters, we return true. To avoid revisiting the same cell on the current path, we temporarily mark the board cell with a dummy ...
The full answer & interview discussion are available to premium members.
Log in Create a free account