Quests 10 chapters · 75 problems
The Classic 75
The classic interview list, one stage at a time.
Seventy-five problems in ten chapters, from arrays to heaps. Each stage has four trials: fill the blanks, recall the key lines, rebuild a loop or a block, then write the whole function.
Try Arrays, the first chapter, without an account. Create a free account to open every problem and keep your stars.
Arrays
Hash maps, prefix products and the first habits of a careful solver.
10 problems
-
1
Two Sum
Up next
1Fill
2Recall
3Rebuild
4Write
Find the two numbers in nums that add up to target, and return their indices.
- 2 Best Time to Buy and Sell Stock Ready 1Fill 2Recall 3Rebuild 4Write
- 3 Contains Duplicate Ready 1Fill 2Recall 3Rebuild 4Write
- 4 Product of Array Except Self Ready 1Fill 2Recall 3Rebuild 4Write
- 5 Maximum Subarray Ready 1Fill 2Recall 3Rebuild 4Write
- 6 Maximum Product Subarray Ready 1Fill 2Recall 3Rebuild 4Write
- 7 Find Minimum in Rotated Sorted Array Ready 1Fill 2Recall 3Rebuild 4Write
- 8 Search in Rotated Sorted Array Ready 1Fill 2Recall 3Rebuild 4Write
- 9 3Sum Ready 1Fill 2Recall 3Rebuild 4Write
- 10 Container With Most Water Ready 1Fill 2Recall 3Rebuild 4Write
Binary
Bits: counting, flipping and adding without a plus.
5 problems
Dynamic programming
Break a problem into smaller ones you have already solved.
11 problems
- Climbing Stairs Free account
- Coin Change Free account
- Longest Increasing Subsequence Free account
- Longest Common Subsequence Free account
- Word Break Free account
- Combination Sum IV Free account
- House Robber Free account
- House Robber II Free account
- Decode Ways Free account
- Unique Paths Free account
- Jump Game Free account
Graphs
Search a world of connected things: islands, courses, clones.
7 of 8 written
Intervals
Ranges on a line: merge them, insert into them, schedule around them.
5 problems
Linked lists
Pointers you rewire by hand.
5 of 6 written
Matrices
Grids: walk them, rotate them, search them.
4 problems
Strings
Windows, anagrams, brackets and palindromes.
9 of 10 written
- Longest Substring Without Repeating Characters Free account
- Longest Repeating Character Replacement Free account
- Minimum Window Substring Free account
- 53 Valid Anagram Ready 1Fill 2Recall 3Rebuild 4Write
- Group Anagrams Free account
- 55 Valid Parentheses Ready 1Fill 2Recall 3Rebuild 4Write
- Valid Palindrome Free account
- Longest Palindromic Substring Free account
- Palindromic Substrings Free account
-
59 Encode and Decode Strings Coming
Trees
Recursion on branching shapes, and search trees.
13 of 14 written
- Maximum Depth of Binary Tree Free account
- Same Tree Free account
- Invert Binary Tree Free account
- Binary Tree Maximum Path Sum Free account
- Binary Tree Level Order Traversal Free account
-
65 Serialize and Deserialize Binary Tree Coming
- Subtree of Another Tree Free account
- Construct Binary Tree from Preorder and Inorder Traversal Free account
- Validate Binary Search Tree Free account
- Kth Smallest Element in a BST Free account
- Lowest Common Ancestor of a Binary Search Tree Free account
- Implement Trie (Prefix Tree) Free account
- Design Add and Search Words Data Structure Free account
- Word Search II Free account