Loading...
Given a 2D grid of characters and a string word, return True if the word exists in the grid. The word can be constructed from sequentially adjacent cells (horizontally or vertically). Each cell may only be used once.
Input: grid rows on separate lines, then the word.
ABCE SFCS ADEE ABCB
True
True because the word is found in the grid.