TweakCode
Graphs lessons
Loading editor…
Test casesRun to compare output
Input
board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCCED"
Output
—
Expected
true

More practice

Same technique, different problems. Try them without the walkthrough.