Search

Lessons (3)

  • Recursion & Backtracking

    … choose backtrack(path, choices); // 2. explore path.pop(); // 3. un-choose (backtrack) } } Example: all subsets js function subsets …

  • DSA Interview Patterns Cheat Sheet

    … BFS, DFS, topological sort 6 Heaps, binary search on the answer, intervals 7 Backtracking 8 Dynamic programming Solve …

  • Graphs: BFS & DFS

    … Follow one corridor as deep as it goes; at a dead end, backtrack to the last junction and …