cswork / listsOpen the problem bank

Mapped by number

Top Interview 150, mapped

Top Interview 150's 150 problems mapped by number to CSWork: 124 can be judged online here, the rest link out to LeetCode. Not an official list.

124 / 150 judgeable here26 external
Practice this list in the bank →

Array / String24 problems · 17 judgeable here

  1. 88Merge Sorted Array01 In-place ArraysJudgeableEasy
  2. 27Remove Element01 In-place ArraysJudgeableEasy
  3. 26Remove Duplicates from Sorted Array01 In-place ArraysJudgeableEasy
  4. 80Remove Duplicates from Sorted Array II01 In-place ArraysJudgeableMedium
  5. 169Majority Element01 In-place ArraysJudgeableEasy
  6. 189LeetCode 189 (opens in a new tab)External
  7. 121Best Time to Buy and Sell Stock29 Stock TradingJudgeableEasy
  8. 122Best Time to Buy and Sell Stock II29 Stock TradingJudgeableMedium
  9. 55Jump Game08 GreedyJudgeableMedium
  10. 45Jump Game II08 GreedyJudgeableMedium
  11. 274LeetCode 274 (opens in a new tab)External
  12. 380Insert Delete GetRandom O(1)33 CachesJudgeableMedium
  13. 238Product of Array Except Self01 In-place ArraysJudgeableMedium
  14. 134Gas Station08 GreedyJudgeableMedium
  15. 135Candy08 GreedyJudgeableHard
  16. 42Trapping Rain Water04 Two PointersJudgeableHard
  17. 13Roman to Integer (opens in a new tab)ExternalEasy
  18. 12Integer to Roman (opens in a new tab)ExternalMedium
  19. 58LeetCode 58 (opens in a new tab)External
  20. 14LeetCode 14 (opens in a new tab)External
  21. 151Reverse Words in a String03 StringsJudgeableMedium
  22. 6LeetCode 6 (opens in a new tab)External
  23. 28Find the Index of the First Occurrence in a String03 StringsJudgeableEasy
  24. 68Text Justification03 StringsJudgeableHard

Two Pointers5 problems · 5 judgeable here

  1. 125Valid Palindrome04 Two PointersJudgeableEasy
  2. 392Is SubsequenceJudgeableEasy
  3. 167Two Sum II - Input Array Is Sorted04 Two PointersJudgeableMedium
  4. 11Container With Most Water04 Two PointersJudgeableMedium
  5. 153Sum04 Two PointersJudgeableMedium

Sliding Window4 problems · 4 judgeable here

  1. 209Minimum Size Subarray Sum04 Two PointersJudgeableMedium
  2. 3Longest Substring Without Repeating Characters04 Two PointersJudgeableMedium
  3. 30Substring with Concatenation of All Words04 Two PointersJudgeableHard
  4. 76Minimum Window Substring04 Two PointersJudgeableHard

Matrix5 problems · 1 judgeable here

  1. 36LeetCode 36 (opens in a new tab)External
  2. 54LeetCode 54 (opens in a new tab)External
  3. 48Rotate Image01 In-place ArraysJudgeableMedium
  4. 73LeetCode 73 (opens in a new tab)External
  5. 289LeetCode 289 (opens in a new tab)External

Hashmap9 problems · 4 judgeable here

  1. 383LeetCode 383 (opens in a new tab)External
  2. 205LeetCode 205 (opens in a new tab)External
  3. 290LeetCode 290 (opens in a new tab)External
  4. 242LeetCode 242 (opens in a new tab)External
  5. 49Group Anagrams02 HashingJudgeableMedium
  6. 1Two Sum02 HashingJudgeableEasy
  7. 202LeetCode 202 (opens in a new tab)External
  8. 219Contains Duplicate II02 HashingJudgeableEasy
  9. 128Longest Consecutive Sequence02 HashingJudgeableMedium

Intervals4 problems · 3 judgeable here

  1. 228Summary Ranges (opens in a new tab)ExternalEasy
  2. 56Merge Intervals05 Prefix & RangesJudgeableMedium
  3. 57Insert Interval05 Prefix & RangesJudgeableMedium
  4. 452Minimum Number of Arrows to Burst Balloons05 Prefix & RangesJudgeableMedium

Stack5 problems · 5 judgeable here

  1. 20Valid Parentheses07 Stacks & HeapsJudgeableEasy
  2. 71Simplify Path07 Stacks & HeapsJudgeableMedium
  3. 155Min Stack32 IteratorsJudgeableMedium
  4. 150Evaluate Reverse Polish Notation07 Stacks & HeapsJudgeableMedium
  5. 224Basic Calculator07 Stacks & HeapsJudgeableHard

Linked List11 problems · 11 judgeable here

  1. 141Linked List Cycle09 Linked ListsJudgeableEasy
  2. 2Add Two Numbers09 Linked ListsJudgeableMedium
  3. 21Merge Two Sorted Lists09 Linked ListsJudgeableEasy
  4. 138Copy List with Random Pointer09 Linked ListsJudgeableMedium
  5. 92Reverse Linked List II09 Linked ListsJudgeableMedium
  6. 25Reverse Nodes in k-Group09 Linked ListsJudgeableHard
  7. 19Remove Nth Node From End of List09 Linked ListsJudgeableMedium
  8. 82Remove Duplicates from Sorted List II09 Linked ListsJudgeableMedium
  9. 61Rotate List09 Linked ListsJudgeableMedium
  10. 86Partition List09 Linked ListsJudgeableMedium
  11. 146LRU Cache33 CachesJudgeableMedium

Binary Tree General14 problems · 14 judgeable here

  1. 104Maximum Depth of Binary Tree10 Tree TraversalJudgeableEasy
  2. 100Same Tree10 Tree TraversalJudgeableEasy
  3. 226Invert Binary Tree10 Tree TraversalJudgeableEasy
  4. 101Symmetric Tree10 Tree TraversalJudgeableEasy
  5. 105Construct Binary Tree from Preorder and Inorder Traversal12 Tree BuildingJudgeableMedium
  6. 106Construct Binary Tree from Inorder and Postorder Traversal12 Tree BuildingJudgeableMedium
  7. 117Populating Next Right Pointers in Each Node II10 Tree TraversalJudgeableMedium
  8. 114Flatten Binary Tree to Linked List12 Tree BuildingJudgeableMedium
  9. 112Path Sum11 Tree PathsJudgeableEasy
  10. 129Sum Root to Leaf Numbers11 Tree PathsJudgeableMedium
  11. 124Binary Tree Maximum Path Sum11 Tree PathsJudgeableHard
  12. 173Binary Search Tree Iterator32 IteratorsJudgeableMedium
  13. 222Count Complete Tree Nodes10 Tree TraversalJudgeableEasy
  14. 236Lowest Common Ancestor of a Binary Tree11 Tree PathsJudgeableMedium

Binary Tree BFS4 problems · 3 judgeable here

  1. 199Binary Tree Right Side View10 Tree TraversalJudgeableMedium
  2. 637Average of Levels in Binary Tree (opens in a new tab)ExternalEasy
  3. 102Binary Tree Level Order Traversal10 Tree TraversalJudgeableMedium
  4. 103Binary Tree Zigzag Level Order Traversal10 Tree TraversalJudgeableMedium

Binary Search Tree3 problems · 3 judgeable here

  1. 530Minimum Absolute Difference in BST13 BSTJudgeableEasy
  2. 230Kth Smallest Element in a BST13 BSTJudgeableMedium
  3. 98Validate Binary Search Tree13 BSTJudgeableMedium

Graph General6 problems · 5 judgeable here

  1. 200Number of Islands14 Grid SearchJudgeableMedium
  2. 130Surrounded Regions14 Grid SearchJudgeableMedium
  3. 133LeetCode 133 (opens in a new tab)External
  4. 399Evaluate Division15 Union-FindJudgeableMedium
  5. 207Course Schedule16 Topo SortJudgeableMedium
  6. 210Course Schedule II16 Topo SortJudgeableMedium

Graph BFS3 problems · 3 judgeable here

  1. 909Snakes and Ladders17 Shortest PathsJudgeableMedium
  2. 433Minimum Genetic Mutation17 Shortest PathsJudgeableMedium
  3. 127Word Ladder17 Shortest PathsJudgeableHard

Trie3 problems · 1 judgeable here

  1. 208LeetCode 208 (opens in a new tab)External
  2. 211LeetCode 211 (opens in a new tab)External
  3. 212Word Search II21 PruningJudgeableHard

Backtracking7 problems · 7 judgeable here

  1. 17Letter Combinations of a Phone Number19 EnumerationJudgeableMedium
  2. 77Combinations19 EnumerationJudgeableMedium
  3. 46Permutations19 EnumerationJudgeableMedium
  4. 39Combination Sum19 EnumerationJudgeableMedium
  5. 52N-Queens II21 PruningJudgeableHard
  6. 22Generate Parentheses20 PartitioningJudgeableMedium
  7. 79Word Search21 PruningJudgeableMedium

Divide & Conquer4 problems · 3 judgeable here

  1. 108Convert Sorted Array to Binary Search Tree13 BSTJudgeableEasy
  2. 148Sort List09 Linked ListsJudgeableMedium
  3. 427Construct Quad Tree (opens in a new tab)ExternalMedium
  4. 23Merge k Sorted Lists09 Linked ListsJudgeableHard

Kadane's Algorithm2 problems · 2 judgeable here

  1. 53Maximum Subarray01 In-place ArraysJudgeableMedium
  2. 918Maximum Sum Circular Subarray28 State MachinesJudgeableMedium

Binary Search7 problems · 7 judgeable here

  1. 35Search Insert Position06 Binary SearchJudgeableEasy
  2. 74Search a 2D Matrix06 Binary SearchJudgeableMedium
  3. 162Find Peak Element06 Binary SearchJudgeableMedium
  4. 33Search in Rotated Sorted Array06 Binary SearchJudgeableMedium
  5. 34Find First and Last Position of Element in Sorted Array06 Binary SearchJudgeableMedium
  6. 153Find Minimum in Rotated Sorted Array06 Binary SearchJudgeableMedium
  7. 4Median of Two Sorted Arrays06 Binary SearchJudgeableHard

Heap4 problems · 4 judgeable here

  1. 215Kth Largest Element in an Array07 Stacks & HeapsJudgeableMedium
  2. 502IPO08 GreedyJudgeableHard
  3. 373Find K Pairs with Smallest Sums07 Stacks & HeapsJudgeableMedium
  4. 295Find Median from Data Stream33 CachesJudgeableHard

Bit Manipulation6 problems · 5 judgeable here

  1. 67LeetCode 67 (opens in a new tab)External
  2. 190Reverse Bits35 Bits & MathJudgeableEasy
  3. 191Number of 1 Bits35 Bits & MathJudgeableEasy
  4. 136Single Number35 Bits & MathJudgeableEasy
  5. 137Single Number II35 Bits & MathJudgeableMedium
  6. 201Bitwise AND of Numbers Range35 Bits & MathJudgeableMedium

Math6 problems · 3 judgeable here

  1. 9Palindrome Number35 Bits & MathJudgeableEasy
  2. 66LeetCode 66 (opens in a new tab)External
  3. 172Factorial Trailing Zeroes35 Bits & MathJudgeableMedium
  4. 69Sqrt(x)35 Bits & MathJudgeableEasy
  5. 50LeetCode 50 (opens in a new tab)External
  6. 149LeetCode 149 (opens in a new tab)External

1D DP5 problems · 5 judgeable here

  1. 70Climbing Stairs22 DP BasicsJudgeableEasy
  2. 198House Robber22 DP BasicsJudgeableMedium
  3. 139Word Break26 String DPJudgeableMedium
  4. 322Coin Change24 KnapsackJudgeableMedium
  5. 300Longest Increasing Subsequence25 SubsequencesJudgeableMedium

Multidimensional DP9 problems · 9 judgeable here

  1. 120Triangle23 Grid DPJudgeableMedium
  2. 64Minimum Path Sum23 Grid DPJudgeableMedium
  3. 63Unique Paths II23 Grid DPJudgeableMedium
  4. 5Longest Palindromic Substring27 PalindromesJudgeableMedium
  5. 97Interleaving String26 String DPJudgeableMedium
  6. 72Edit Distance26 String DPJudgeableMedium
  7. 123Best Time to Buy and Sell Stock III29 Stock TradingJudgeableHard
  8. 188Best Time to Buy and Sell Stock IV29 Stock TradingJudgeableHard
  9. 221Maximal Square23 Grid DPJudgeableMedium

Where the list comes from

Top Interview 150 is published by its own authors. This page only maps it by problem number and is not official. The original list: leetcode.cn