LeetCode Patterns: All 22 Coding Interview Patterns
There are thousands of LeetCode problems and a much smaller number of ways to solve them. A pattern is the reusable half: the data structure, the loop shape and the invariant that make a family of problems collapse into one. Learn the pattern and you stop solving problems one at a time — which is the only strategy that scales, because no amount of memorising covers the specific problem you get asked.
Each hub below is a full page: what the pattern is, when it applies, a Python template, the time and space complexity with the reason behind it, and every problem in this library the pattern covers, grouped by difficulty. Counts are computed from the dataset, so they are what the page actually lists.
Keep exploring
Looking for a specific problem? Every pattern hub links straight to it — or start from the full problem list.
Stuck on the one you get asked
Stealth Interview is a desktop app for macOS and Windows. It reads the coding problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer is saying — while staying invisible to screen sharing.