board is a grid of letters given as a list of equal-length strings. Return True if word can be spelled by walking from cell to neighbouring cell (up, down, left or right), where each cell is used at most once in the path.
Example 1
Input:
word_search(['abce', 'sfcs', 'adee'], 'abcced')
Output:
True
Example 2
Input:
word_search(['abce', 'sfcs', 'adee'], 'abcb')
Output:
False
0 <= rows, cols <= 60 <= len(word) <= 12No results yet
Run your code to check it against the examples, or submit to run every test.