Understanding DFS and BFS Techniques
This note summarizes essential techniques and patterns when solving BFS/DFS problems, especially in grid-based problems and graph traversal. Many of these ideas come up repeatedly in coding interviews or contest problems.
🚩 General DFS Rules
Alway...
ejjung.hashnode.dev2 min read