LeetCode Problems List: All 3,000, Organised by Pattern
This library holds a page for every one of the 3,000 problems on LeetCode. 2,690 of them carry a complete Python solution with a worked example, a step-by-step explanation and the time and space complexity of the approach. The problems are LeetCode's; the solutions, the grouping and the explanations are ours.
Problem numbers are a poor way to study, because the number tells you nothing about how the problem is solved. So the library is organised the way the problems are actually solved: 22 patterns, each with the technique written out, a Python template you can adapt, and every problem in the corpus that the pattern applies to. If you would rather follow a known plan, the five curated study lists cover 285 distinct problems between them.
- Problems
- 3,000
- With a full solution
- 2,690
- Patterns
- 22
- Topics
- 60
Browse by pattern
A pattern is the shape of the solution, and it transfers: once the sliding window is in your hands, every problem about a contiguous subarray becomes the same problem with different bookkeeping. Each hub below explains the technique, gives a Python template, states the complexity, and lists every problem in the library it applies to.
Curated study lists
Five well-known selections, none of them ours. We reproduce each list by problem number, say how many of its entries are in this library and how many of those carry a full solution, and link every one to its page here.
Browse by difficulty
760 Easy · 1,579 Medium · 661 Hard. Difficulty is LeetCode's own rating, carried through unchanged.
Browse by topic
LeetCode's own tags, which are coarser than the patterns above but are what the problem set is officially classified by. The 60 tags with at least eight problems each have a page; see all topics.
- Array1,569
- String672
- Hash Table588
- Math485
- Dynamic Programming481
- Sorting392
- Greedy346
- Depth-First Search289
- Binary Search253
- Database249
- Tree225
- Breadth-First Search223
- Matrix216
- Two Pointers201
- Bit Manipulation194
- Binary Tree174
- Heap (Priority Queue)163
- Prefix Sum157
- Stack157
- Simulation144
- Graph138
- Counting126
- Design122
- Sliding Window116
- Backtracking105
- Union Find83
- Enumeration80
- Linked List75
- JavaScript67
- Monotonic Stack58
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.