Leetcode – 212. Word Search II

This problem builds on Word Search, the only difference being instead of searching for one particular word, we are now given a set of words. We could take our solution from the Word Search problem and run that algorithm for every word in the data set which would result in a lot of wasted computations as the nested for loops …

Mohit AthwaniLeetcode – 212. Word Search II