Loading problem…
You're building a word search feature for a 2D character grid.
Given an m x n grid board and a string word, return true if the word can be formed from sequentially adjacent cells. Adjacent cells share an edge, and a cell cannot be used more than once in the same path.
Example 1:
Example 2: