DSA patterns

Interview problems repeat a small set of ideas. Learn the 76 patterns below and most new problems turn into "this is a sliding window" or "this is a BFS on a grid". Each pattern lists its practice problems, easiest first.

Arrays & Hashing

Stack

Monotonic Stack

Linked List

Recursion & Backtracking

Trees & BST

Backtracking 1

Heaps

Intervals

Tries

Graphs

Dynamic Programming

Bit Manipulation

Design Data Structures