The Blind 75
The classic interview list, one stage at a time.
Seventy-five problems in ten chapters, from arrays to heaps. Each stage has three trials: recall the key lines, rebuild a loop or a block, then write the whole function with a safety net.
Chapter 1
Arrays
Hash maps, prefix products and the first habits of a careful solver.
10 of 10 stages written
- 1 Two Sum Ready
- 2 Best Time to Buy and Sell Stock Ready
- 3 Contains Duplicate Ready
- 4 Product of Array Except Self Ready
- 5 Maximum Subarray Ready
- 6 Maximum Product Subarray Ready
- 7 Find Minimum in Rotated Sorted Array Ready
- 8 Search in Rotated Sorted Array Ready
- 9 3Sum Ready
- 10 Container With Most Water Ready
Chapter 2
Binary
Bits: counting, flipping and adding without a plus.
0 of 5 stages written
-
11 Sum of Two Integers Coming
-
12 Number of 1 Bits Coming
-
13 Counting Bits Coming
-
14 Missing Number Coming
-
15 Reverse Bits Coming
Chapter 3
Dynamic programming
Break a problem into smaller ones you have already solved.
0 of 11 stages written
-
16 Climbing Stairs Coming
-
17 Coin Change Coming
-
18 Longest Increasing Subsequence Coming
-
19 Longest Common Subsequence Coming
-
20 Word Break Coming
-
21 Combination Sum IV Coming
-
22 House Robber Coming
-
23 House Robber II Coming
-
24 Decode Ways Coming
-
25 Unique Paths Coming
-
26 Jump Game Coming
Chapter 4
Graphs
Search a world of connected things: islands, courses, clones.
0 of 8 stages written
-
27 Clone Graph Coming
-
28 Course Schedule Coming
-
29 Pacific Atlantic Water Flow Coming
-
30 Number of Islands Coming
-
31 Longest Consecutive Sequence Coming
-
32 Alien Dictionary Coming
-
33 Graph Valid Tree Coming
-
34 Number of Connected Components in an Undirected Graph Coming
Chapter 5
Intervals
Ranges on a line: merge them, insert into them, schedule around them.
0 of 5 stages written
-
35 Insert Interval Coming
-
36 Merge Intervals Coming
-
37 Non-overlapping Intervals Coming
-
38 Meeting Rooms Coming
-
39 Meeting Rooms II Coming
Chapter 6
Linked lists
Pointers you rewire by hand.
1 of 6 stages written
- 40 Reverse Linked List Ready
-
41 Linked List Cycle Coming
-
42 Merge Two Sorted Lists Coming
-
43 Merge K Sorted Lists Coming
-
44 Remove Nth Node From End of List Coming
-
45 Reorder List Coming
Chapter 7
Matrices
Grids: walk them, rotate them, search them.
0 of 4 stages written
-
46 Set Matrix Zeroes Coming
-
47 Spiral Matrix Coming
-
48 Rotate Image Coming
-
49 Word Search Coming
Chapter 8
Strings
Windows, anagrams, brackets and palindromes.
1 of 10 stages written
-
50 Longest Substring Without Repeating Characters Coming
-
51 Longest Repeating Character Replacement Coming
-
52 Minimum Window Substring Coming
-
53 Valid Anagram Coming
-
54 Group Anagrams Coming
- 55 Valid Parentheses Ready
-
56 Valid Palindrome Coming
-
57 Longest Palindromic Substring Coming
-
58 Palindromic Substrings Coming
-
59 Encode and Decode Strings Coming
Chapter 9
Trees
Recursion on branching shapes, and search trees.
0 of 14 stages written
-
60 Maximum Depth of Binary Tree Coming
-
61 Same Tree Coming
-
62 Invert Binary Tree Coming
-
63 Binary Tree Maximum Path Sum Coming
-
64 Binary Tree Level Order Traversal Coming
-
65 Serialize and Deserialize Binary Tree Coming
-
66 Subtree of Another Tree Coming
-
67 Construct Binary Tree from Preorder and Inorder Traversal Coming
-
68 Validate Binary Search Tree Coming
-
69 Kth Smallest Element in a BST Coming
-
70 Lowest Common Ancestor of a Binary Search Tree Coming
-
71 Implement Trie (Prefix Tree) Coming
-
72 Design Add and Search Words Data Structure Coming
-
73 Word Search II Coming
Chapter 10
Heaps
Always know the smallest, largest or middle.
0 of 3 stages written
-
74 Merge K Sorted Lists Coming
-
75 Top K Frequent Elements Coming
-
76 Find Median from Data Stream Coming