Catalog
Interview patterns, visualized
Visual studio lessons with five language implementations. For the full topic curriculum and 1000 practice problems, open Topics and Problems.
Two Pointers — Pair Sum
Converge from both ends on a sorted array to find a target sum.
Sliding Window — Max Sum
Maintain a fixed-size window and update the sum in O(1) per step.
Binary Search
Halve the search space each step until the target is found.
Stack — Valid Parentheses
Use LIFO matching to validate nested brackets.
Linked List — Reverse
Reverse pointers in-place with prev / curr / next.
Binary Tree — DFS Preorder
Recursive preorder: node → left → right with live edge focus.
Heap — Top K
Maintain a size-k min-heap to stream the largest values.
Graph BFS
Level-order exploration with a queue — shortest path in unweighted graphs.
Dijkstra — Shortest Path
Greedy settlement of the closest unsettled node with edge relaxation.
DP — Climbing Stairs
Classic 1D DP: each step builds from the prior two answers.