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