Mapped by number
Cracking the Coding Interview (6th ed.), mapped
Cracking the Coding Interview (6th ed.)'s 109 problems mapped by number to CSWork: 104 can be judged online here, the rest link out to LeetCode. Not an official list.
104 / 109 judgeable here5 external37 of 109 have a LeetCode twin
Practice this list in the bank →Chapter 1 · Arrays and Strings9 problems · 7 judgeable here
- CtCI 01.01Are All Characters Different?Easy
- CtCI 01.02LeetCode 242 (opens in a new tab)
- CtCI 01.03URL-encode Spaces Up to the True LengthEasy
- CtCI 01.04Palindrome Permutation 🔒Easy
- CtCI 01.05One Edit AwayMedium
- CtCI 01.06Run-Length CompressionEasy
- CtCI 01.07Rotate ImageMedium
- CtCI 01.08LeetCode 73 (opens in a new tab)
- CtCI 01.09Rotate StringEasy
Chapter 2 · Linked Lists8 problems · 7 judgeable here
- CtCI 02.01Remove Repeats From a List, Keeping the FirstEasy
- CtCI 02.02Value of the k-th Node From the EndEasy
- CtCI 02.03Delete Node in a Linked List (opens in a new tab)Medium
- CtCI 02.04Split a List Around a PivotMedium
- CtCI 02.05Add Two NumbersMedium
- CtCI 02.06Palindrome Linked ListEasy
- CtCI 02.07Intersection of Two Linked ListsEasy
- CtCI 02.08Linked List Cycle IIMedium
Chapter 3 · Stacks and Queues6 problems · 6 judgeable here
- CtCI 03.01Three Stacks in One ArrayEasy
- CtCI 03.02Min StackMedium
- CtCI 03.03Stacks of PlatesMedium
- CtCI 03.04Implement Queue using StacksEasy
- CtCI 03.05A Stack With the Minimum on TopMedium
- CtCI 03.06Animal ShelterEasy
Chapter 4 · Trees and Graphs10 problems · 10 judgeable here
- CtCI 04.01Is There a Route Between Two Nodes?Medium
- CtCI 04.02Convert Sorted Array to Binary Search TreeEasy
- CtCI 04.03The Nodes on Each Level of a TreeMedium
- CtCI 04.04Balanced Binary TreeEasy
- CtCI 04.05Validate Binary Search TreeMedium
- CtCI 04.06Inorder Successor in BST 🔒Medium
- CtCI 04.08Lowest Common Ancestor of a Binary TreeMedium
- CtCI 04.09Insertion Orders That Build the Same Search TreeHard
- CtCI 04.10Subtree of Another TreeEasy
- CtCI 04.12Path Sum IIIMedium
Chapter 5 · Bit Manipulation7 problems · 7 judgeable here
- CtCI 05.01Insert One Number Into Another's BitsEasy
- CtCI 05.02Write a Fraction in BinaryMedium
- CtCI 05.03Flip One Bit for the Longest Run of OnesEasy
- CtCI 05.04Neighbours With the Same Number of One BitsMedium
- CtCI 05.06How Many Bits to ChangeEasy
- CtCI 05.07Swap Odd and Even BitsEasy
- CtCI 05.08Draw a Horizontal Line on a Monochrome ScreenMedium
Chapter 8 · Recursion and Dynamic Programming14 problems · 14 judgeable here
- CtCI 08.01One, Two or Three Steps at a TimeEasy
- CtCI 08.02Guide a Robot Around ObstaclesMedium
- CtCI 08.03Find a Value Equal to Its IndexEasy
- CtCI 08.04SubsetsMedium
- CtCI 08.05Multiply Without the Times SignMedium
- CtCI 08.06Every Move of the Towers of HanoiEasy
- CtCI 08.07Every Arrangement of Distinct LettersMedium
- CtCI 08.08Arrangements of Letters With RepeatsMedium
- CtCI 08.09Generate ParenthesesMedium
- CtCI 08.10Flood FillEasy
- CtCI 08.11Ways to Make n CentsMedium
- CtCI 08.12N-QueensHard
- CtCI 08.13Stack the Tallest Tower of BoxesHard
- CtCI 08.14Parenthesise a Boolean ExpressionMedium
Chapter 10 · Sorting and Searching7 problems · 7 judgeable here
- CtCI 10.01Merge Sorted ArrayEasy
- CtCI 10.02Group AnagramsMedium
- CtCI 10.03Search a Rotated Sorted ArrayMedium
- CtCI 10.05Find a Word in a Sorted List With GapsEasy
- CtCI 10.09Search a 2D Matrix IIMedium
- CtCI 10.10Rank in a StreamMedium
- CtCI 10.11Valleys and Peaks, Smallest FirstMedium
Chapter 16 · Moderate24 problems · 24 judgeable here
- CtCI 16.01Swap in Place Without a TemporaryEasy
- CtCI 16.02How Often Does a Word Appear?Medium
- CtCI 16.03Where Two Segments MeetHard
- CtCI 16.04Judge a Tic-Tac-Toe BoardMedium
- CtCI 16.05Factorial Trailing ZeroesMedium
- CtCI 16.06Smallest Difference Between Two ArraysMedium
- CtCI 16.07The Larger Number Without ComparingEasy
- CtCI 16.08Integer to English WordsHard
- CtCI 16.09Subtract, Multiply and Divide With Addition OnlyMedium
- CtCI 16.10The Year With the Most People AliveMedium
- CtCI 16.11Build a Diving Board From Two Plank SizesEasy
- CtCI 16.13One Line Halving Two SquaresMedium
- CtCI 16.14The Line Through the Most PointsMedium
- CtCI 16.15Mastermind Hits and Pseudo-HitsEasy
- CtCI 16.16The Shortest Range to SortMedium
- CtCI 16.17Maximum SubarrayMedium
- CtCI 16.18Match a String Against an a/b PatternMedium
- CtCI 16.19Pond SizesMedium
- CtCI 16.20Old Phone Keypad WordsMedium
- CtCI 16.21Swap One Pair to Balance Two SumsMedium
- CtCI 16.22Langton's Ant After K StepsMedium
- CtCI 16.24As Many Pairs Summing to a Target as PossibleMedium
- CtCI 16.25LRU CacheMedium
- CtCI 16.26Basic Calculator IIMedium
Chapter 17 · Hard24 problems · 22 judgeable here
- CtCI 17.01Sum of Two IntegersMedium
- CtCI 17.04LeetCode 268 (opens in a new tab)
- CtCI 17.05The Longest Run With as Many Letters as DigitsMedium
- CtCI 17.06How Many 2s Appear?Hard
- CtCI 17.07Merge Synonymous Baby NamesMedium
- CtCI 17.08The Tallest Human TowerMedium
- CtCI 17.09The k-th Number Made of 3s, 5s and 7sMedium
- CtCI 17.10The Majority ElementEasy
- CtCI 17.11The Closest Two WordsMedium
- CtCI 17.12Increasing Order Search Tree (opens in a new tab)Easy
- CtCI 17.13Put the Spaces BackMedium
- CtCI 17.14Pick the k SmallestMedium
- CtCI 17.15The Longest Word Made of Other WordsMedium
- CtCI 17.16House RobberMedium
- CtCI 17.17Search Many Short Strings in a Long OneMedium
- CtCI 17.18The Shortest Range Holding Every TargetMedium
- CtCI 17.19The Two Missing NumbersHard
- CtCI 17.20Find Median from Data StreamHard
- CtCI 17.21Trapping Rain WaterHard
- CtCI 17.22Change One Letter at a TimeMedium
- CtCI 17.23The Largest Square With Black BordersMedium
- CtCI 17.24The Submatrix With the Largest SumHard
- CtCI 17.25The Largest Rectangle of WordsHard
- CtCI 17.26Similarity of Sparse DocumentsHard
Where the list comes from
Cracking the Coding Interview (6th ed.) is published by its own authors. This page only maps it by problem number and is not official. The original list: leetcode.cn