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...

Markdown supported · ⌘↵ to post
No responses yet.