Part 1 — The Core DSA & Algorithm Cheatsheet
Built by analysing all 150 questions first, then extracting the union of every structure, pattern and Java mechanic they require — and nothing they don't. Written to be read cold.
Derived by analyzing all 150 NeetCode questions and taking the union of their prerequisites. If a technique isn't needed by at least one of the 150, it isn't here. If a question needs it, it is.
These files assume no prior knowledge of the topic. Each one explains what the structure or technique is and why it exists before showing code, and every non-obvious algorithm is traced step by step on a concrete example.
The quick reference
The vocabulary used throughout, the decision tree that turns a problem shape into a pattern, the ten mechanics that appear most across the 150, and the five arguments worth memorising.
Open the reference →Foundations
Read these first and carefully — everything else assumes them.
HashMap keys, the contract, what to use instead of int[]
8 min
Patterns
One file per technique family. Read alongside the matching section.