Determine Whether a Word Exists in a Character Grid
UberSoftware Engineer · Technical ScreenLast updated
Practice a Uber coding interview problem focused on determine whether a word exists in a character grid. The prompt emphasizes edge cases, clean implementation, and verifiable test behavior without revealing the solution.
Given a 2D character grid and a word, return whether the word can be formed by moving horizontally or vertically between adjacent cells without reusing a cell.
Implement:
def exists_in_grid(board: list[list[str]], word: str) -> bool:
pass
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.