cswork / lists打开题库

题号对照

程序员面试金典(第 6 版) 对照

把 程序员面试金典(第 6 版) 的 109 道题按题号对照到 CSWork:104 道可在本站在线判题,其余标为站外并链接到力扣。非官方题单,仅做题号对照。

104 / 109 道可在本站判题站外 5 道37 / 109 道有力扣主站对应题
在题库里按这份题单练习 →

第 1 章 · 数组与字符串9 题 · 本站可判 7

  1. 面试题 01.01Are All Characters Different?原题:Are All Characters Different?(在新窗口打开)本站可判简单
  2. 面试题 01.02LeetCode 242(在新窗口打开)LeetCode 242站外
  3. 面试题 01.03URL-encode Spaces Up to the True Length原题:URL-encode Spaces Up to the True Length(在新窗口打开)本站可判简单
  4. 面试题 01.04Palindrome Permutation 🔒LeetCode 26602 哈希计数本站可判简单
  5. 面试题 01.05One Edit Away原题:One Edit Away(在新窗口打开)本站可判中等
  6. 面试题 01.06Run-Length Compression原题:Run-Length Compression(在新窗口打开)本站可判简单
  7. 面试题 01.07Rotate ImageLeetCode 4801 原地数组本站可判中等
  8. 面试题 01.08LeetCode 73(在新窗口打开)LeetCode 73站外
  9. 面试题 01.09Rotate StringLeetCode 79603 字符串本站可判简单

第 2 章 · 链表8 题 · 本站可判 7

  1. 面试题 02.01Remove Repeats From a List, Keeping the First原题:Remove Repeats From a List, Keeping the First(在新窗口打开)本站可判简单
  2. 面试题 02.02Value of the k-th Node From the End原题:Value of the k-th Node From the End(在新窗口打开)本站可判简单
  3. 面试题 02.03Delete Node in a Linked List(在新窗口打开)LeetCode 237站外中等
  4. 面试题 02.04Split a List Around a Pivot原题:Split a List Around a Pivot(在新窗口打开)本站可判中等
  5. 面试题 02.05Add Two NumbersLeetCode 209 链表本站可判中等
  6. 面试题 02.06Palindrome Linked ListLeetCode 23409 链表本站可判简单
  7. 面试题 02.07Intersection of Two Linked ListsLeetCode 16009 链表本站可判简单
  8. 面试题 02.08Linked List Cycle IILeetCode 14209 链表本站可判中等

第 3 章 · 栈与队列6 题 · 本站可判 6

  1. 面试题 03.01Three Stacks in One Array原题:Three Stacks in One Array(在新窗口打开)本站可判简单
  2. 面试题 03.02Min StackLeetCode 15532 迭代器设计本站可判中等
  3. 面试题 03.03Stacks of Plates原题:Stacks of Plates(在新窗口打开)本站可判中等
  4. 面试题 03.04Implement Queue using StacksLeetCode 23232 迭代器设计本站可判简单
  5. 面试题 03.05A Stack With the Minimum on Top原题:A Stack With the Minimum on Top(在新窗口打开)本站可判中等
  6. 面试题 03.06Animal Shelter原题:Animal Shelter(在新窗口打开)本站可判简单

第 4 章 · 树与图10 题 · 本站可判 10

  1. 面试题 04.01Is There a Route Between Two Nodes?原题:Is There a Route Between Two Nodes?(在新窗口打开)本站可判中等
  2. 面试题 04.02Convert Sorted Array to Binary Search TreeLeetCode 10813 二叉搜索树本站可判简单
  3. 面试题 04.03The Nodes on Each Level of a Tree原题:The Nodes on Each Level of a Tree(在新窗口打开)本站可判中等
  4. 面试题 04.04Balanced Binary TreeLeetCode 11010 树的遍历本站可判简单
  5. 面试题 04.05Validate Binary Search TreeLeetCode 9813 二叉搜索树本站可判中等
  6. 面试题 04.06Inorder Successor in BST 🔒LeetCode 28513 二叉搜索树本站可判中等
  7. 面试题 04.08Lowest Common Ancestor of a Binary TreeLeetCode 23611 树上路径本站可判中等
  8. 面试题 04.09Insertion Orders That Build the Same Search Tree原题:Insertion Orders That Build the Same Search Tree(在新窗口打开)本站可判困难
  9. 面试题 04.10Subtree of Another TreeLeetCode 57210 树的遍历本站可判简单
  10. 面试题 04.12Path Sum IIILeetCode 43711 树上路径本站可判中等

第 5 章 · 位操作7 题 · 本站可判 7

  1. 面试题 05.01Insert One Number Into Another's Bits原题:Insert One Number Into Another's Bits(在新窗口打开)本站可判简单
  2. 面试题 05.02Write a Fraction in Binary原题:Write a Fraction in Binary(在新窗口打开)本站可判中等
  3. 面试题 05.03Flip One Bit for the Longest Run of Ones原题:Flip One Bit for the Longest Run of Ones(在新窗口打开)本站可判简单
  4. 面试题 05.04Neighbours With the Same Number of One Bits原题:Neighbours With the Same Number of One Bits(在新窗口打开)本站可判中等
  5. 面试题 05.06How Many Bits to Change原题:How Many Bits to Change(在新窗口打开)本站可判简单
  6. 面试题 05.07Swap Odd and Even Bits原题:Swap Odd and Even Bits(在新窗口打开)本站可判简单
  7. 面试题 05.08Draw a Horizontal Line on a Monochrome Screen原题:Draw a Horizontal Line on a Monochrome Screen(在新窗口打开)本站可判中等

第 8 章 · 递归与动态规划14 题 · 本站可判 14

  1. 面试题 08.01One, Two or Three Steps at a Time原题:One, Two or Three Steps at a Time(在新窗口打开)本站可判简单
  2. 面试题 08.02Guide a Robot Around Obstacles原题:Guide a Robot Around Obstacles(在新窗口打开)本站可判中等
  3. 面试题 08.03Find a Value Equal to Its Index原题:Find a Value Equal to Its Index(在新窗口打开)本站可判简单
  4. 面试题 08.04SubsetsLeetCode 7819 回溯枚举本站可判中等
  5. 面试题 08.05Multiply Without the Times Sign原题:Multiply Without the Times Sign(在新窗口打开)本站可判中等
  6. 面试题 08.06Every Move of the Towers of Hanoi原题:Every Move of the Towers of Hanoi(在新窗口打开)本站可判简单
  7. 面试题 08.07Every Arrangement of Distinct Letters原题:Every Arrangement of Distinct Letters(在新窗口打开)本站可判中等
  8. 面试题 08.08Arrangements of Letters With Repeats原题:Arrangements of Letters With Repeats(在新窗口打开)本站可判中等
  9. 面试题 08.09Generate ParenthesesLeetCode 2220 拆分构造本站可判中等
  10. 面试题 08.10Flood FillLeetCode 73314 网格搜索本站可判简单
  11. 面试题 08.11Ways to Make n Cents原题:Ways to Make n Cents(在新窗口打开)本站可判中等
  12. 面试题 08.12N-QueensLeetCode 5121 剪枝搜索本站可判困难
  13. 面试题 08.13Stack the Tallest Tower of Boxes原题:Stack the Tallest Tower of Boxes(在新窗口打开)本站可判困难
  14. 面试题 08.14Parenthesise a Boolean Expression原题:Parenthesise a Boolean Expression(在新窗口打开)本站可判中等

第 10 章 · 排序与查找7 题 · 本站可判 7

  1. 面试题 10.01Merge Sorted ArrayLeetCode 8801 原地数组本站可判简单
  2. 面试题 10.02Group AnagramsLeetCode 4902 哈希计数本站可判中等
  3. 面试题 10.03Search a Rotated Sorted Array原题:Search a Rotated Sorted Array(在新窗口打开)本站可判中等
  4. 面试题 10.05Find a Word in a Sorted List With Gaps原题:Find a Word in a Sorted List With Gaps(在新窗口打开)本站可判简单
  5. 面试题 10.09Search a 2D Matrix IILeetCode 24006 二分查找本站可判中等
  6. 面试题 10.10Rank in a Stream原题:Rank in a Stream(在新窗口打开)本站可判中等
  7. 面试题 10.11Valleys and Peaks, Smallest First原题:Valleys and Peaks, Smallest First(在新窗口打开)本站可判中等

第 16 章 · 中等难题24 题 · 本站可判 24

  1. 面试题 16.01Swap in Place Without a Temporary原题:Swap in Place Without a Temporary(在新窗口打开)本站可判简单
  2. 面试题 16.02How Often Does a Word Appear?原题:How Often Does a Word Appear?(在新窗口打开)本站可判中等
  3. 面试题 16.03Where Two Segments Meet原题:Where Two Segments Meet(在新窗口打开)本站可判困难
  4. 面试题 16.04Judge a Tic-Tac-Toe Board原题:Judge a Tic-Tac-Toe Board(在新窗口打开)本站可判中等
  5. 面试题 16.05Factorial Trailing ZeroesLeetCode 17235 位运算本站可判中等
  6. 面试题 16.06Smallest Difference Between Two Arrays原题:Smallest Difference Between Two Arrays(在新窗口打开)本站可判中等
  7. 面试题 16.07The Larger Number Without Comparing原题:The Larger Number Without Comparing(在新窗口打开)本站可判简单
  8. 面试题 16.08Integer to English WordsLeetCode 27303 字符串本站可判困难
  9. 面试题 16.09Subtract, Multiply and Divide With Addition Only原题:Subtract, Multiply and Divide With Addition Only(在新窗口打开)本站可判中等
  10. 面试题 16.10The Year With the Most People Alive原题:The Year With the Most People Alive(在新窗口打开)本站可判中等
  11. 面试题 16.11Build a Diving Board From Two Plank Sizes原题:Build a Diving Board From Two Plank Sizes(在新窗口打开)本站可判简单
  12. 面试题 16.13One Line Halving Two Squares原题:One Line Halving Two Squares(在新窗口打开)本站可判中等
  13. 面试题 16.14The Line Through the Most Points原题:The Line Through the Most Points(在新窗口打开)本站可判中等
  14. 面试题 16.15Mastermind Hits and Pseudo-Hits原题:Mastermind Hits and Pseudo-Hits(在新窗口打开)本站可判简单
  15. 面试题 16.16The Shortest Range to Sort原题:The Shortest Range to Sort(在新窗口打开)本站可判中等
  16. 面试题 16.17Maximum SubarrayLeetCode 5301 原地数组本站可判中等
  17. 面试题 16.18Match a String Against an a/b Pattern原题:Match a String Against an a/b Pattern(在新窗口打开)本站可判中等
  18. 面试题 16.19Pond Sizes原题:Pond Sizes(在新窗口打开)本站可判中等
  19. 面试题 16.20Old Phone Keypad Words原题:Old Phone Keypad Words(在新窗口打开)本站可判中等
  20. 面试题 16.21Swap One Pair to Balance Two Sums原题:Swap One Pair to Balance Two Sums(在新窗口打开)本站可判中等
  21. 面试题 16.22Langton's Ant After K Steps原题:Langton's Ant After K Steps(在新窗口打开)本站可判中等
  22. 面试题 16.24As Many Pairs Summing to a Target as Possible原题:As Many Pairs Summing to a Target as Possible(在新窗口打开)本站可判中等
  23. 面试题 16.25LRU CacheLeetCode 14633 缓存索引本站可判中等
  24. 面试题 16.26Basic Calculator IILeetCode 22707 单调栈与堆本站可判中等

第 17 章 · 高难度题24 题 · 本站可判 22

  1. 面试题 17.01Sum of Two IntegersLeetCode 37135 位运算本站可判中等
  2. 面试题 17.04LeetCode 268(在新窗口打开)LeetCode 268站外
  3. 面试题 17.05The Longest Run With as Many Letters as Digits原题:The Longest Run With as Many Letters as Digits(在新窗口打开)本站可判中等
  4. 面试题 17.06How Many 2s Appear?原题:How Many 2s Appear?(在新窗口打开)本站可判困难
  5. 面试题 17.07Merge Synonymous Baby Names原题:Merge Synonymous Baby Names(在新窗口打开)本站可判中等
  6. 面试题 17.08The Tallest Human Tower原题:The Tallest Human Tower(在新窗口打开)本站可判中等
  7. 面试题 17.09The k-th Number Made of 3s, 5s and 7s原题:The k-th Number Made of 3s, 5s and 7s(在新窗口打开)本站可判中等
  8. 面试题 17.10The Majority Element原题:The Majority Element(在新窗口打开)本站可判简单
  9. 面试题 17.11The Closest Two Words原题:The Closest Two Words(在新窗口打开)本站可判中等
  10. 面试题 17.12Increasing Order Search Tree(在新窗口打开)LeetCode 897站外简单
  11. 面试题 17.13Put the Spaces Back原题:Put the Spaces Back(在新窗口打开)本站可判中等
  12. 面试题 17.14Pick the k Smallest原题:Pick the k Smallest(在新窗口打开)本站可判中等
  13. 面试题 17.15The Longest Word Made of Other Words原题:The Longest Word Made of Other Words(在新窗口打开)本站可判中等
  14. 面试题 17.16House RobberLeetCode 19822 动规入门本站可判中等
  15. 面试题 17.17Search Many Short Strings in a Long One原题:Search Many Short Strings in a Long One(在新窗口打开)本站可判中等
  16. 面试题 17.18The Shortest Range Holding Every Target原题:The Shortest Range Holding Every Target(在新窗口打开)本站可判中等
  17. 面试题 17.19The Two Missing Numbers原题:The Two Missing Numbers(在新窗口打开)本站可判困难
  18. 面试题 17.20Find Median from Data StreamLeetCode 29533 缓存索引本站可判困难
  19. 面试题 17.21Trapping Rain WaterLeetCode 4204 双指针滑窗本站可判困难
  20. 面试题 17.22Change One Letter at a Time原题:Change One Letter at a Time(在新窗口打开)本站可判中等
  21. 面试题 17.23The Largest Square With Black Borders原题:The Largest Square With Black Borders(在新窗口打开)本站可判中等
  22. 面试题 17.24The Submatrix With the Largest Sum原题:The Submatrix With the Largest Sum(在新窗口打开)本站可判困难
  23. 面试题 17.25The Largest Rectangle of Words原题:The Largest Rectangle of Words(在新窗口打开)本站可判困难
  24. 面试题 17.26Similarity of Sparse Documents原题:Similarity of Sparse Documents(在新窗口打开)本站可判困难

题单来源

程序员面试金典(第 6 版) 由其发布方整理,本页只按题号对照,不是官方页面。原题单:leetcode.cn