Explain Boggle (Find all possible words in a board of characters)
Explain Boggle (Find all possible words in a board of characters)
The idea is to consider every character as a starting character and find all words starting with it. All words starting from a character can be found using Depth First Traversal. We do depth first traversal starting from every cell. We keep track of visited cells to make sure that a cell is considered only once in a word.