Learn
Short lessons on the ideas behind interview problems. Each one has a worked example, an interactive visualization and a quick check.
Foundations
The ideas every pattern builds on.
Patterns
The techniques interview problems are built from.
Hashing and counting~8mTwo pointers~10mSliding window~12mPrefix sums~10mBinary search~12mBinary search on the answer~12mStack~8mMonotonic stack~12mHeap and top K~12mIntervals~12mLinked list pointer tricks~12mTree traversal~12mBinary search tree properties~12mGraph BFS and DFS~14mShortest paths~15mTopological sort~14mBacktracking~14mDynamic programming in one dimension~15mDynamic programming on a grid~15mKnapsack-style dynamic programming~15mGreedy choices~12mDesigning a data structure~14m
Topics
Math, bits, simulation and other tools.