cswork / lists打开题库

题号对照

面试经典 150 题 对照

把 面试经典 150 题 的 150 道题按题号对照到 CSWork:124 道可在本站在线判题,其余标为站外并链接到力扣。非官方题单,仅做题号对照。

124 / 150 道可在本站判题站外 26 道
在题库里按这份题单练习 →

数组 / 字符串24 题 · 本站可判 17

  1. 88Merge Sorted Array01 原地数组本站可判简单
  2. 27Remove Element01 原地数组本站可判简单
  3. 26Remove Duplicates from Sorted Array01 原地数组本站可判简单
  4. 80Remove Duplicates from Sorted Array II01 原地数组本站可判中等
  5. 169Majority Element01 原地数组本站可判简单
  6. 189LeetCode 189(在新窗口打开)站外
  7. 121Best Time to Buy and Sell Stock29 股票买卖本站可判简单
  8. 122Best Time to Buy and Sell Stock II29 股票买卖本站可判中等
  9. 55Jump Game08 贪心调度本站可判中等
  10. 45Jump Game II08 贪心调度本站可判中等
  11. 274LeetCode 274(在新窗口打开)站外
  12. 380Insert Delete GetRandom O(1)33 缓存索引本站可判中等
  13. 238Product of Array Except Self01 原地数组本站可判中等
  14. 134Gas Station08 贪心调度本站可判中等
  15. 135Candy08 贪心调度本站可判困难
  16. 42Trapping Rain Water04 双指针滑窗本站可判困难
  17. 13Roman to Integer(在新窗口打开)站外简单
  18. 12Integer to Roman(在新窗口打开)站外中等
  19. 58LeetCode 58(在新窗口打开)站外
  20. 14LeetCode 14(在新窗口打开)站外
  21. 151Reverse Words in a String03 字符串本站可判中等
  22. 6LeetCode 6(在新窗口打开)站外
  23. 28Find the Index of the First Occurrence in a String03 字符串本站可判简单
  24. 68Text Justification03 字符串本站可判困难

双指针5 题 · 本站可判 5

  1. 125Valid Palindrome04 双指针滑窗本站可判简单
  2. 392Is Subsequence本站可判简单
  3. 167Two Sum II - Input Array Is Sorted04 双指针滑窗本站可判中等
  4. 11Container With Most Water04 双指针滑窗本站可判中等
  5. 153Sum04 双指针滑窗本站可判中等

滑动窗口4 题 · 本站可判 4

  1. 209Minimum Size Subarray Sum04 双指针滑窗本站可判中等
  2. 3Longest Substring Without Repeating Characters04 双指针滑窗本站可判中等
  3. 30Substring with Concatenation of All Words04 双指针滑窗本站可判困难
  4. 76Minimum Window Substring04 双指针滑窗本站可判困难

矩阵5 题 · 本站可判 1

  1. 36LeetCode 36(在新窗口打开)站外
  2. 54LeetCode 54(在新窗口打开)站外
  3. 48Rotate Image01 原地数组本站可判中等
  4. 73LeetCode 73(在新窗口打开)站外
  5. 289LeetCode 289(在新窗口打开)站外

哈希表9 题 · 本站可判 4

  1. 383LeetCode 383(在新窗口打开)站外
  2. 205LeetCode 205(在新窗口打开)站外
  3. 290LeetCode 290(在新窗口打开)站外
  4. 242LeetCode 242(在新窗口打开)站外
  5. 49Group Anagrams02 哈希计数本站可判中等
  6. 1Two Sum02 哈希计数本站可判简单
  7. 202LeetCode 202(在新窗口打开)站外
  8. 219Contains Duplicate II02 哈希计数本站可判简单
  9. 128Longest Consecutive Sequence02 哈希计数本站可判中等

区间4 题 · 本站可判 3

  1. 228Summary Ranges(在新窗口打开)站外简单
  2. 56Merge Intervals05 前缀和区间本站可判中等
  3. 57Insert Interval05 前缀和区间本站可判中等
  4. 452Minimum Number of Arrows to Burst Balloons05 前缀和区间本站可判中等

栈5 题 · 本站可判 5

  1. 20Valid Parentheses07 单调栈与堆本站可判简单
  2. 71Simplify Path07 单调栈与堆本站可判中等
  3. 155Min Stack32 迭代器设计本站可判中等
  4. 150Evaluate Reverse Polish Notation07 单调栈与堆本站可判中等
  5. 224Basic Calculator07 单调栈与堆本站可判困难

链表11 题 · 本站可判 11

  1. 141Linked List Cycle09 链表本站可判简单
  2. 2Add Two Numbers09 链表本站可判中等
  3. 21Merge Two Sorted Lists09 链表本站可判简单
  4. 138Copy List with Random Pointer09 链表本站可判中等
  5. 92Reverse Linked List II09 链表本站可判中等
  6. 25Reverse Nodes in k-Group09 链表本站可判困难
  7. 19Remove Nth Node From End of List09 链表本站可判中等
  8. 82Remove Duplicates from Sorted List II09 链表本站可判中等
  9. 61Rotate List09 链表本站可判中等
  10. 86Partition List09 链表本站可判中等
  11. 146LRU Cache33 缓存索引本站可判中等

二叉树14 题 · 本站可判 14

  1. 104Maximum Depth of Binary Tree10 树的遍历本站可判简单
  2. 100Same Tree10 树的遍历本站可判简单
  3. 226Invert Binary Tree10 树的遍历本站可判简单
  4. 101Symmetric Tree10 树的遍历本站可判简单
  5. 105Construct Binary Tree from Preorder and Inorder Traversal12 树的构造本站可判中等
  6. 106Construct Binary Tree from Inorder and Postorder Traversal12 树的构造本站可判中等
  7. 117Populating Next Right Pointers in Each Node II10 树的遍历本站可判中等
  8. 114Flatten Binary Tree to Linked List12 树的构造本站可判中等
  9. 112Path Sum11 树上路径本站可判简单
  10. 129Sum Root to Leaf Numbers11 树上路径本站可判中等
  11. 124Binary Tree Maximum Path Sum11 树上路径本站可判困难
  12. 173Binary Search Tree Iterator32 迭代器设计本站可判中等
  13. 222Count Complete Tree Nodes10 树的遍历本站可判简单
  14. 236Lowest Common Ancestor of a Binary Tree11 树上路径本站可判中等

二叉树层次遍历4 题 · 本站可判 3

  1. 199Binary Tree Right Side View10 树的遍历本站可判中等
  2. 637Average of Levels in Binary Tree(在新窗口打开)站外简单
  3. 102Binary Tree Level Order Traversal10 树的遍历本站可判中等
  4. 103Binary Tree Zigzag Level Order Traversal10 树的遍历本站可判中等

二叉搜索树3 题 · 本站可判 3

  1. 530Minimum Absolute Difference in BST13 二叉搜索树本站可判简单
  2. 230Kth Smallest Element in a BST13 二叉搜索树本站可判中等
  3. 98Validate Binary Search Tree13 二叉搜索树本站可判中等

图6 题 · 本站可判 5

  1. 200Number of Islands14 网格搜索本站可判中等
  2. 130Surrounded Regions14 网格搜索本站可判中等
  3. 133LeetCode 133(在新窗口打开)站外
  4. 399Evaluate Division15 并查集本站可判中等
  5. 207Course Schedule16 拓扑排序本站可判中等
  6. 210Course Schedule II16 拓扑排序本站可判中等

图的广度优先搜索3 题 · 本站可判 3

  1. 909Snakes and Ladders17 最短路本站可判中等
  2. 433Minimum Genetic Mutation17 最短路本站可判中等
  3. 127Word Ladder17 最短路本站可判困难

字典树3 题 · 本站可判 1

  1. 208LeetCode 208(在新窗口打开)站外
  2. 211LeetCode 211(在新窗口打开)站外
  3. 212Word Search II21 剪枝搜索本站可判困难

回溯7 题 · 本站可判 7

  1. 17Letter Combinations of a Phone Number19 回溯枚举本站可判中等
  2. 77Combinations19 回溯枚举本站可判中等
  3. 46Permutations19 回溯枚举本站可判中等
  4. 39Combination Sum19 回溯枚举本站可判中等
  5. 52N-Queens II21 剪枝搜索本站可判困难
  6. 22Generate Parentheses20 拆分构造本站可判中等
  7. 79Word Search21 剪枝搜索本站可判中等

分治4 题 · 本站可判 3

  1. 108Convert Sorted Array to Binary Search Tree13 二叉搜索树本站可判简单
  2. 148Sort List09 链表本站可判中等
  3. 427Construct Quad Tree(在新窗口打开)站外中等
  4. 23Merge k Sorted Lists09 链表本站可判困难

Kadane 算法2 题 · 本站可判 2

  1. 53Maximum Subarray01 原地数组本站可判中等
  2. 918Maximum Sum Circular Subarray28 状态机本站可判中等

二分查找7 题 · 本站可判 7

  1. 35Search Insert Position06 二分查找本站可判简单
  2. 74Search a 2D Matrix06 二分查找本站可判中等
  3. 162Find Peak Element06 二分查找本站可判中等
  4. 33Search in Rotated Sorted Array06 二分查找本站可判中等
  5. 34Find First and Last Position of Element in Sorted Array06 二分查找本站可判中等
  6. 153Find Minimum in Rotated Sorted Array06 二分查找本站可判中等
  7. 4Median of Two Sorted Arrays06 二分查找本站可判困难

堆4 题 · 本站可判 4

  1. 215Kth Largest Element in an Array07 单调栈与堆本站可判中等
  2. 502IPO08 贪心调度本站可判困难
  3. 373Find K Pairs with Smallest Sums07 单调栈与堆本站可判中等
  4. 295Find Median from Data Stream33 缓存索引本站可判困难

位运算6 题 · 本站可判 5

  1. 67LeetCode 67(在新窗口打开)站外
  2. 190Reverse Bits35 位运算本站可判简单
  3. 191Number of 1 Bits35 位运算本站可判简单
  4. 136Single Number35 位运算本站可判简单
  5. 137Single Number II35 位运算本站可判中等
  6. 201Bitwise AND of Numbers Range35 位运算本站可判中等

数学6 题 · 本站可判 3

  1. 9Palindrome Number35 位运算本站可判简单
  2. 66LeetCode 66(在新窗口打开)站外
  3. 172Factorial Trailing Zeroes35 位运算本站可判中等
  4. 69Sqrt(x)35 位运算本站可判简单
  5. 50LeetCode 50(在新窗口打开)站外
  6. 149LeetCode 149(在新窗口打开)站外

一维动态规划5 题 · 本站可判 5

  1. 70Climbing Stairs22 动规入门本站可判简单
  2. 198House Robber22 动规入门本站可判中等
  3. 139Word Break26 字符串动规本站可判中等
  4. 322Coin Change24 背包计数本站可判中等
  5. 300Longest Increasing Subsequence25 子序列本站可判中等

多维动态规划9 题 · 本站可判 9

  1. 120Triangle23 网格动规本站可判中等
  2. 64Minimum Path Sum23 网格动规本站可判中等
  3. 63Unique Paths II23 网格动规本站可判中等
  4. 5Longest Palindromic Substring27 回文区间本站可判中等
  5. 97Interleaving String26 字符串动规本站可判中等
  6. 72Edit Distance26 字符串动规本站可判中等
  7. 123Best Time to Buy and Sell Stock III29 股票买卖本站可判困难
  8. 188Best Time to Buy and Sell Stock IV29 股票买卖本站可判困难
  9. 221Maximal Square23 网格动规本站可判中等

题单来源

面试经典 150 题 由其发布方整理,本页只按题号对照,不是官方页面。原题单:leetcode.cn