cswork / listsOpen the problem bank

Mapped by number

LeetCode Top 100 Liked, mapped

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

93 / 100 judgeable here7 external
Practice this list in the bank →

Hashing3 problems · 3 judgeable here

  1. 1Two Sum02 HashingJudgeableEasy
  2. 49Group Anagrams02 HashingJudgeableMedium
  3. 128Longest Consecutive Sequence02 HashingJudgeableMedium

Two Pointers4 problems · 4 judgeable here

  1. 283Move Zeroes01 In-place ArraysJudgeableEasy
  2. 11Container With Most Water04 Two PointersJudgeableMedium
  3. 153Sum04 Two PointersJudgeableMedium
  4. 42Trapping Rain Water04 Two PointersJudgeableHard

Sliding Window2 problems · 2 judgeable here

  1. 3Longest Substring Without Repeating Characters04 Two PointersJudgeableMedium
  2. 438Find All Anagrams in a String04 Two PointersJudgeableMedium

Substring3 problems · 3 judgeable here

  1. 560Subarray Sum Equals K05 Prefix & RangesJudgeableMedium
  2. 239Sliding Window Maximum07 Stacks & HeapsJudgeableHard
  3. 76Minimum Window Substring04 Two PointersJudgeableHard

Array5 problems · 4 judgeable here

  1. 53Maximum Subarray01 In-place ArraysJudgeableMedium
  2. 56Merge Intervals05 Prefix & RangesJudgeableMedium
  3. 189LeetCode 189 (opens in a new tab)External
  4. 238Product of Array Except Self01 In-place ArraysJudgeableMedium
  5. 41First Missing Positive01 In-place ArraysJudgeableHard

Matrix4 problems · 2 judgeable here

  1. 73LeetCode 73 (opens in a new tab)External
  2. 54LeetCode 54 (opens in a new tab)External
  3. 48Rotate Image01 In-place ArraysJudgeableMedium
  4. 240Search a 2D Matrix II06 Binary SearchJudgeableMedium

Linked List14 problems · 14 judgeable here

  1. 160Intersection of Two Linked Lists09 Linked ListsJudgeableEasy
  2. 206Reverse Linked List09 Linked ListsJudgeableEasy
  3. 234Palindrome Linked List09 Linked ListsJudgeableEasy
  4. 141Linked List Cycle09 Linked ListsJudgeableEasy
  5. 142Linked List Cycle II09 Linked ListsJudgeableMedium
  6. 21Merge Two Sorted Lists09 Linked ListsJudgeableEasy
  7. 2Add Two Numbers09 Linked ListsJudgeableMedium
  8. 19Remove Nth Node From End of List09 Linked ListsJudgeableMedium
  9. 24Swap Nodes in Pairs09 Linked ListsJudgeableMedium
  10. 25Reverse Nodes in k-Group09 Linked ListsJudgeableHard
  11. 138Copy List with Random Pointer09 Linked ListsJudgeableMedium
  12. 148Sort List09 Linked ListsJudgeableMedium
  13. 23Merge k Sorted Lists09 Linked ListsJudgeableHard
  14. 146LRU Cache33 CachesJudgeableMedium

Binary Tree15 problems · 15 judgeable here

  1. 94Binary Tree Inorder Traversal10 Tree TraversalJudgeableEasy
  2. 104Maximum Depth of Binary Tree10 Tree TraversalJudgeableEasy
  3. 226Invert Binary Tree10 Tree TraversalJudgeableEasy
  4. 101Symmetric Tree10 Tree TraversalJudgeableEasy
  5. 543Diameter of Binary Tree10 Tree TraversalJudgeableEasy
  6. 102Binary Tree Level Order Traversal10 Tree TraversalJudgeableMedium
  7. 108Convert Sorted Array to Binary Search Tree13 BSTJudgeableEasy
  8. 98Validate Binary Search Tree13 BSTJudgeableMedium
  9. 230Kth Smallest Element in a BST13 BSTJudgeableMedium
  10. 199Binary Tree Right Side View10 Tree TraversalJudgeableMedium
  11. 114Flatten Binary Tree to Linked List12 Tree BuildingJudgeableMedium
  12. 105Construct Binary Tree from Preorder and Inorder Traversal12 Tree BuildingJudgeableMedium
  13. 437Path Sum III11 Tree PathsJudgeableMedium
  14. 236Lowest Common Ancestor of a Binary Tree11 Tree PathsJudgeableMedium
  15. 124Binary Tree Maximum Path Sum11 Tree PathsJudgeableHard

Graph4 problems · 3 judgeable here

  1. 200Number of Islands14 Grid SearchJudgeableMedium
  2. 994Rotting Oranges14 Grid SearchJudgeableMedium
  3. 207Course Schedule16 Topo SortJudgeableMedium
  4. 208LeetCode 208 (opens in a new tab)External

Backtracking8 problems · 8 judgeable here

  1. 46Permutations19 EnumerationJudgeableMedium
  2. 78Subsets19 EnumerationJudgeableMedium
  3. 17Letter Combinations of a Phone Number19 EnumerationJudgeableMedium
  4. 39Combination Sum19 EnumerationJudgeableMedium
  5. 22Generate Parentheses20 PartitioningJudgeableMedium
  6. 79Word Search21 PruningJudgeableMedium
  7. 131Palindrome Partitioning20 PartitioningJudgeableMedium
  8. 51N-Queens21 PruningJudgeableHard

Binary Search6 problems · 6 judgeable here

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

Stack5 problems · 5 judgeable here

  1. 20Valid Parentheses07 Stacks & HeapsJudgeableEasy
  2. 155Min Stack32 IteratorsJudgeableMedium
  3. 394Decode String07 Stacks & HeapsJudgeableMedium
  4. 739Daily Temperatures07 Stacks & HeapsJudgeableMedium
  5. 84Largest Rectangle in Histogram07 Stacks & HeapsJudgeableHard

Heap3 problems · 2 judgeable here

  1. 215Kth Largest Element in an Array07 Stacks & HeapsJudgeableMedium
  2. 347LeetCode 347 (opens in a new tab)External
  3. 295Find Median from Data Stream33 CachesJudgeableHard

Greedy4 problems · 4 judgeable here

  1. 121Best Time to Buy and Sell Stock29 Stock TradingJudgeableEasy
  2. 55Jump Game08 GreedyJudgeableMedium
  3. 45Jump Game II08 GreedyJudgeableMedium
  4. 763Partition Labels08 GreedyJudgeableMedium

Dynamic Programming10 problems · 9 judgeable here

  1. 70Climbing Stairs22 DP BasicsJudgeableEasy
  2. 118LeetCode 118 (opens in a new tab)External
  3. 198House Robber22 DP BasicsJudgeableMedium
  4. 279Perfect Squares24 KnapsackJudgeableMedium
  5. 322Coin Change24 KnapsackJudgeableMedium
  6. 139Word Break26 String DPJudgeableMedium
  7. 300Longest Increasing Subsequence25 SubsequencesJudgeableMedium
  8. 152Maximum Product Subarray28 State MachinesJudgeableMedium
  9. 416Partition Equal Subset Sum24 KnapsackJudgeableMedium
  10. 32Longest Valid ParenthesesJudgeableHard

Multidimensional DP5 problems · 5 judgeable here

  1. 62Unique Paths23 Grid DPJudgeableMedium
  2. 64Minimum Path Sum23 Grid DPJudgeableMedium
  3. 5Longest Palindromic Substring27 PalindromesJudgeableMedium
  4. 1143Longest Common Subsequence26 String DPJudgeableMedium
  5. 72Edit Distance26 String DPJudgeableMedium

Tricks5 problems · 4 judgeable here

  1. 136Single Number35 Bits & MathJudgeableEasy
  2. 169Majority Element01 In-place ArraysJudgeableEasy
  3. 75Sort Colors01 In-place ArraysJudgeableMedium
  4. 31LeetCode 31 (opens in a new tab)External
  5. 287Find the Duplicate Number01 In-place ArraysJudgeableMedium

Where the list comes from

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