Рет қаралды 3,396
In this video we are solving a popular Amazon interview question: Word Search.
This is another search based question in a matrix except this time we are using DFS instead of the BFS that usually comes up. We have to be a bit smart with some postorder traversals here because we can mess up future DFS searches if we don't undo modifications of our original input grid.