
算法珠玑(C++版)
算法珠玑(C++版)——一个最精简的题库,本书的目标读者是准备去硅谷找工作的码农,也适用于在国内找工作的码农,以及刚接触ACM算法竞赛的新手。
154人已学习
目录
- 介绍 291 浏览
-
线性表
184 浏览
-
数组
279 浏览
- Remove Duplicates from Sorted Array 221 浏览
- Remove Duplicates from Sorted Array II 187 浏览
- Longest Consecutive Sequence 144 浏览
- Two Sum 240 浏览
- 3Sum 185 浏览
- 3Sum Closest 156 浏览
- 4Sum 162 浏览
- Remove Element 129 浏览
- Move Zeroes 159 浏览
- Next Permutation 174 浏览
- Permutation Sequence 155 浏览
- Valid Sudoku 189 浏览
- Trapping Rain Water 193 浏览
- Rotate Image 107 浏览
- Plus One 152 浏览
- Climbing Stairs 149 浏览
- Set Matrix Zeroes 572 浏览
- Gas Station 142 浏览
- Candy 191 浏览
- Majority Element 139 浏览
- Rotate Array 135 浏览
- Contains Duplicate 167 浏览
- Contains Duplicate II 157 浏览
- Contains Duplicate III 194 浏览
- Product of Array Except Self 324 浏览
- Game of Life 144 浏览
- Increasing Triplet Subsequence 137 浏览
-
单链表
155 浏览
- Reverse Linked List 154 浏览
- Odd Even Linked List 214 浏览
- Add Two Numbers 151 浏览
- Reverse Linked List II 147 浏览
- Partition List 121 浏览
- Remove Duplicates from Sorted List 160 浏览
- Remove Duplicates from Sorted List II 191 浏览
- Rotate List 167 浏览
- Remove Nth Node From End of List 121 浏览
- Swap Nodes in Pairs 212 浏览
- Reverse Nodes in k-Group 175 浏览
- Copy List with Random Pointer 145 浏览
- Linked List Cycle 182 浏览
- Linked List Cycle II 162 浏览
- Reorder List 190 浏览
- LRU Cache 185 浏览
- Palindrome Linked List 181 浏览
-
数组
279 浏览
-
字符串
134 浏览
- Valid Palindrome 160 浏览
- Implement strStr() 181 浏览
- String to Integer (atoi) 194 浏览
- Add Binary 143 浏览
- Longest Palindromic Substring 151 浏览
- Regular Expression Matching 185 浏览
- Wildcard Matching 162 浏览
- Longest Common Prefix 200 浏览
- Valid Number 183 浏览
- Integer to Roman 153 浏览
- Roman to Integer 144 浏览
- Count and Say 151 浏览
- Anagrams 183 浏览
- Valid Anagram 207 浏览
- Simplify Path 154 浏览
- Length of Last Word 161 浏览
- Isomorphic Strings 182 浏览
- Word Pattern 123 浏览
-
栈和队列
143 浏览
-
栈
177 浏览
- Min Stack 129 浏览
- Valid Parentheses 154 浏览
- Longest Valid Parentheses 130 浏览
- Largest Rectangle in Histogram 261 浏览
- Evaluate Reverse Polish Notation 156 浏览
- Implement Stack using Queues 149 浏览
-
队列
111 浏览
- Implement Queue using Stacks 132 浏览
-
栈
177 浏览
-
二叉树
143 浏览
-
二叉树的遍历
109 浏览
- Binary Tree Preorder Traversal 127 浏览
- Binary Tree Inorder Traversal 123 浏览
- Binary Tree Postorder Traversal 172 浏览
- Binary Tree Level Order Traversal 126 浏览
- Binary Tree Level Order Traversal II 214 浏览
- Binary Tree Right Side View 203 浏览
- Invert Binary Tree 138 浏览
- Binary Search Tree Iterator 164 浏览
- Binary Tree Zigzag Level Order Traversal 152 浏览
- Recover Binary Search Tree 145 浏览
- Same Tree 129 浏览
- Symmetric Tree 179 浏览
- Balanced Binary Tree 140 浏览
- Flatten Binary Tree to Linked List 122 浏览
- Populating Next Right Pointers in Each Node II 154 浏览
- 二叉树的构建 180 浏览
-
二叉查找树
116 浏览
- Unique Binary Search Trees 141 浏览
- Unique Binary Search Trees II 159 浏览
- Validate Binary Search Tree 145 浏览
- Convert Sorted Array to Binary Search Tree 162 浏览
- Convert Sorted List to Binary Search Tree 107 浏览
- LCA of BST 130 浏览
- Kth Smallest Element in a BST 131 浏览
-
二叉树的递归
118 浏览
- Minimum Depth of Binary Tree 113 浏览
- Maximum Depth of Binary Tree 154 浏览
- Path Sum 124 浏览
- Path Sum II 165 浏览
- Binary Tree Maximum Path Sum 141 浏览
- Populating Next Right Pointers in Each Node 187 浏览
- Sum Root to Leaf Numbers 112 浏览
- LCA of Binary Tree 135 浏览
-
线段树
188 浏览
- Range Sum Query - Mutable 103 浏览
-
二叉树的遍历
109 浏览
-
排序
122 浏览
-
插入排序
118 浏览
- Insertion Sort List 141 浏览
-
归并排序
152 浏览
- Merge Two Sorted Arrays 147 浏览
- Merge Two Sorted Lists 105 浏览
- Merge k Sorted Lists 138 浏览
- Sort List 109 浏览
-
快速排序
232 浏览
- Sort Colors 108 浏览
- Kth Largest Element in an Array 167 浏览
-
桶排序
118 浏览
- First Missing Positive 139 浏览
-
计数排序
137 浏览
- H-Index 165 浏览
-
基数排序
142 浏览
- Maximum Gap 119 浏览
-
其他
155 浏览
- Largest Number 131 浏览
- 小结 161 浏览
-
插入排序
118 浏览
-
查找
124 浏览
- Search for a Range 162 浏览
- Search Insert Position 135 浏览
- Search in Rotated Sorted Array 164 浏览
- Search in Rotated Sorted Array II 201 浏览
- Search a 2D Matrix 133 浏览
- Search a 2D Matrix II 147 浏览
- Find Minimum in Rotated Sorted Array 131 浏览
- Find Minimum in Rotated Sorted Array II 151 浏览
- Median of Two Sorted Arrays 128 浏览
- H-Index II 208 浏览
-
暴力枚举法
209 浏览
- Subsets 303 浏览
- Subsets II 170 浏览
- Permutations 144 浏览
- Permutations II 160 浏览
- Combinations 173 浏览
- Letter Combinations of a Phone Number 125 浏览
-
广度优先搜索
249 浏览
- Word Ladder 157 浏览
- Word Ladder II 102 浏览
- Surrounded Regions 154 浏览
- 总结 148 浏览
-
深度优先搜索
128 浏览
- Additive Number 111 浏览
- Palindrome Partitioning 214 浏览
- Unique Paths 186 浏览
- Unique Paths II 152 浏览
- N-Queens 149 浏览
- N-Queens II 187 浏览
- Restore IP Addresses 153 浏览
- Combination Sum 113 浏览
- Combination Sum II 106 浏览
- Combination Sum III 127 浏览
- Generate Parentheses 129 浏览
- Sudoku Solver 162 浏览
- Word Search 132 浏览
- 总结 185 浏览
- 分治法 115 浏览
-
贪心法
132 浏览
- Jump Game 176 浏览
- Jump Game II 161 浏览
- Best Time to Buy and Sell Stock 125 浏览
- Best Time to Buy and Sell Stock II 219 浏览
- Longest Substring Without Repeating Characters 198 浏览
- Container With Most Water 120 浏览
- Patching Array 115 浏览
-
动态规划
170 浏览
- Triangle 157 浏览
- Maximum Subarray 131 浏览
- Maximum Product Subarray 139 浏览
- Longest Increasing Subsequence 171 浏览
- Palindrome Partitioning II 123 浏览
- Maximal Rectangle 203 浏览
- Best Time to Buy and Sell Stock III 130 浏览
- Best Time to Buy and Sell Stock IV 110 浏览
- Best Time to Buy and Sell Stock with Cooldown 124 浏览
- Interleaving String 150 浏览
- Scramble String 155 浏览
- Minimum Path Sum 153 浏览
- Edit Distance 116 浏览
- Decode Ways 119 浏览
- Distinct Subsequences 161 浏览
- Word Break 171 浏览
- Word Break II 129 浏览
- Dungeon Game 131 浏览
- House Robber 138 浏览
- House Robber II 96 浏览
- House Robber III 146 浏览
- Range Sum Query - Immutable 121 浏览
- Range Sum Query 2D - Immutable 168 浏览
-
图
93 浏览
- Clone Graph 160 浏览
-
位操作
132 浏览
- Reverse Bits 162 浏览
- Repeated DNA Sequences 148 浏览
- Number of 1 Bits 148 浏览
- Gray Code 154 浏览
- Single Number 103 浏览
- Single Number II 137 浏览
- Single Number III 152 浏览
- Power of Two 130 浏览
- Missing Number 147 浏览
- Maximum Product of Word Lengths 180 浏览
- Bitwise AND of Numbers Range 157 浏览
- Power of Three 119 浏览
- Rectangle Area 163 浏览
-
数论
161 浏览
- Happy Number 173 浏览
- Ugly Number 118 浏览
- Ugly Number II 134 浏览
- Super Ugly Number 140 浏览
- Fraction to Recurring Decimal 158 浏览
- Factorial Trailing Zeroes 156 浏览
- Nim Game 137 浏览
-
模拟
165 浏览
- Reverse Integer 150 浏览
- Palindrome Number 125 浏览
- Insert Interval 180 浏览
- Merge Intervals 232 浏览
- Minimum Window Substring 124 浏览
- Multiply Strings 164 浏览
- Substring with Concatenation of All Words 132 浏览
- Pascal's Triangle 141 浏览
- Pascal's Triangle II 104 浏览
- Spiral Matrix 105 浏览
- Spiral Matrix II 145 浏览
- ZigZag Conversion 119 浏览
- Divide Two Integers 124 浏览
- Text Justification 123 浏览
- Max Points on a Line 137 浏览