File tree
1,228 files changed
+6910
-5539
lines changed- .github/workflows
- basic/sorting
- HeapSort
- InsertionSort
- MergeSort
- QuickSort
- ShellSort
- lcci
- 01.03.String to URL
- 01.09.String Rotation
- 02.05.Sum Lists
- 03.02.Min Stack
- 03.05.Sort of Stacks
- 03.06.Animal Shelter
- 04.02.Minimum Height Tree
- 04.10.Check SubTree
- 04.12.Paths with Sum
- 05.07.Exchange
- 08.01.Three Steps Problem
- 08.02.Robot in a Grid
- 08.03.Magic Index
- 08.05.Recursive Mulitply
- 10.02.Group Anagrams
- 16.02.Words Frequency
- 16.10.Living People
- 17.04.Missing Number
- lcof
- 面试题03. 数组中重复的数字
- 面试题04. 二维数组中的查找
- 面试题05. 替换空格
- 面试题07. 重建二叉树
- 面试题09. 用两个栈实现队列
- 面试题11. 旋转数组的最小数字
- 面试题12. 矩阵中的路径
- 面试题13. 机器人的运动范围
- 面试题14- I. 剪绳子
- 面试题14- II. 剪绳子 II
- 面试题16. 数值的整数次方
- 面试题18. 删除链表的节点
- 面试题21. 调整数组顺序使奇数位于偶数前面
- 面试题25. 合并两个排序的链表
- 面试题26. 树的子结构
- 面试题29. 顺时针打印矩阵
- 面试题30. 包含min函数的栈
- 面试题33. 二叉搜索树的后序遍历序列
- 面试题34. 二叉树中和为某一值的路径
- 面试题39. 数组中出现次数超过一半的数字
- 面试题40. 最小的k个数
- 面试题41. 数据流中的中位数
- 面试题45. 把数组排成最小的数
- 面试题49. 丑数
- 面试题53 - I. 在排序数组中查找数字 I
- 面试题53 - II. 0~n-1中缺失的数字
- 面试题55 - I. 二叉树的深度
- 面试题55 - II. 平衡二叉树
- 面试题57. 和为s的两个数字
- 面试题59 - I. 滑动窗口的最大值
- 面试题59 - II. 队列的最大值
- 面试题64. 求1+2+…+n
- 面试题68 - I. 二叉搜索树的最近公共祖先
- 面试题68 - II. 二叉树的最近公共祖先
- lcof2
- 剑指 Offer II 002. 二进制加法
- 剑指 Offer II 006. 排序数组中两个数字之和
- 剑指 Offer II 007. 数组中和为 0 的三个数
- 剑指 Offer II 031. 最近最少使用缓存
- 剑指 Offer II 037. 小行星碰撞
- 剑指 Offer II 038. 每日温度
- 剑指 Offer II 051. 节点之和最大的路径
- 剑指 Offer II 052. 展平二叉搜索树
- 剑指 Offer II 055. 二叉搜索树迭代器
- 剑指 Offer II 089. 房屋偷盗
- 剑指 Offer II 090. 环形房屋偷盗
- 剑指 Offer II 095. 最长公共子序列
- 剑指 Offer II 098. 路径的数目
- 剑指 Offer II 105. 岛屿的最大面积
- lcp/LCP 06. 拿硬币
- solution
- 0000-0099
- 0001.Two Sum
- 0002.Add Two Numbers
- 0003.Longest Substring Without Repeating Characters
- 0005.Longest Palindromic Substring
- 0007.Reverse Integer
- 0010.Regular Expression Matching
- 0011.Container With Most Water
- 0014.Longest Common Prefix
- 0015.3Sum
- 0017.Letter Combinations of a Phone Number
- 0021.Merge Two Sorted Lists
- 0023.Merge k Sorted Lists
- 0025.Reverse Nodes in k-Group
- 0026.Remove Duplicates from Sorted Array
- 0027.Remove Element
- 0033.Search in Rotated Sorted Array
- 0035.Search Insert Position
- 0039.Combination Sum
- 0040.Combination Sum II
- 0041.First Missing Positive
- 0042.Trapping Rain Water
- 0043.Multiply Strings
- 0046.Permutations
- 0048.Rotate Image
- 0049.Group Anagrams
- 0050.Pow(x, n)
- 0053.Maximum Subarray
- 0055.Jump Game
- 0057.Insert Interval
- 0062.Unique Paths
- 0067.Add Binary
- 0069.Sqrt(x)
- 0071.Simplify Path
- 0074.Search a 2D Matrix
- 0075.Sort Colors
- 0077.Combinations
- 0079.Word Search
- 0080.Remove Duplicates from Sorted Array II
- 0084.Largest Rectangle in Histogram
- 0085.Maximal Rectangle
- 0088.Merge Sorted Array
- 0092.Reverse Linked List II
- 0094.Binary Tree Inorder Traversal
- 0095.Unique Binary Search Trees II
- 0097.Interleaving String
- 0100-0199
- 0100.Same Tree
- 0101.Symmetric Tree
- 0102.Binary Tree Level Order Traversal
- 0105.Construct Binary Tree from Preorder and Inorder Traversal
- 0106.Construct Binary Tree from Inorder and Postorder Traversal
- 0107.Binary Tree Level Order Traversal II
- 0108.Convert Sorted Array to Binary Search Tree
- 0109.Convert Sorted List to Binary Search Tree
- 0112.Path Sum
- 0113.Path Sum II
- 0114.Flatten Binary Tree to Linked List
- 0115.Distinct Subsequences
- 0118.Pascal's Triangle
- 0119.Pascal's Triangle II
- 0122.Best Time to Buy and Sell Stock II
- 0123.Best Time to Buy and Sell Stock III
- 0124.Binary Tree Maximum Path Sum
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,228 files changed
+6910
-5539
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 |
| |
212 | 215 |
| |
213 | 216 |
| |
214 | 217 |
| |
215 | 218 |
| |
216 |
| - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
217 | 223 |
| |
218 | 224 |
| |
219 | 225 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 |
| |
48 | 51 |
| |
49 | 52 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
359 | 359 |
| |
360 | 360 |
| |
361 | 361 |
| |
362 |
| - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
363 | 366 |
| |
364 | 367 |
| |
365 | 368 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 |
| |
42 | 45 |
| |
43 | 46 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
283 |
| - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
284 | 287 |
| |
285 | 288 |
| |
286 | 289 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
| 142 | + | |
147 | 143 |
| |
148 | 144 |
| |
149 | 145 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
| 139 | + | |
144 | 140 |
| |
145 | 141 |
| |
146 | 142 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
145 |
| - | |
| 145 | + | |
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 |
| - | |
| 118 | + | |
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
| 239 | + | |
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
231 | 231 |
| |
232 | 232 |
| |
233 | 233 |
| |
234 |
| - | |
| 234 | + | |
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
240 | 239 |
| |
241 | 240 |
| |
242 | 241 |
| |
243 | 242 |
| |
244 | 243 |
| |
245 |
| - | |
246 | 244 |
| |
247 | 245 |
| |
248 | 246 |
| |
| |||
269 | 267 |
| |
270 | 268 |
| |
271 | 269 |
| |
272 |
| - | |
273 |
| - | |
274 |
| - | |
| 270 | + | |
275 | 271 |
| |
276 | 272 |
| |
277 | 273 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
240 | 239 |
| |
241 | 240 |
| |
242 | 241 |
| |
243 | 242 |
| |
244 | 243 |
| |
245 |
| - | |
246 | 244 |
| |
247 | 245 |
| |
248 | 246 |
| |
| |||
269 | 267 |
| |
270 | 268 |
| |
271 | 269 |
| |
272 |
| - | |
273 |
| - | |
274 |
| - | |
| 270 | + | |
275 | 271 |
| |
276 | 272 |
| |
277 | 273 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
11 | 10 |
| |
12 | 11 |
| |
13 |
| - | |
14 | 12 |
| |
15 | 13 |
| |
16 | 14 |
| |
| |||
37 | 35 |
| |
38 | 36 |
| |
39 | 37 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 38 | + | |
43 | 39 |
| |
44 | 40 |
| |
45 | 41 |
| |
46 | 42 |
| |
47 | 43 |
| |
48 | 44 |
| |
49 |
| - | |
| 45 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
249 |
| - | |
| 249 | + | |
250 | 250 |
| |
251 | 251 |
| |
252 |
| - | |
253 | 252 |
| |
254 | 253 |
| |
255 | 254 |
| |
256 | 255 |
| |
257 | 256 |
| |
258 |
| - | |
259 | 257 |
| |
260 | 258 |
| |
261 | 259 |
| |
| |||
281 | 279 |
| |
282 | 280 |
| |
283 | 281 |
| |
284 |
| - | |
285 |
| - | |
286 |
| - | |
| 282 | + | |
287 | 283 |
| |
288 | 284 |
| |
289 | 285 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 |
| - | |
258 | 257 |
| |
259 | 258 |
| |
260 | 259 |
| |
261 | 260 |
| |
262 | 261 |
| |
263 |
| - | |
264 | 262 |
| |
265 | 263 |
| |
266 | 264 |
| |
| |||
286 | 284 |
| |
287 | 285 |
| |
288 | 286 |
| |
289 |
| - | |
290 |
| - | |
291 |
| - | |
| 287 | + | |
292 | 288 |
| |
293 | 289 |
| |
294 | 290 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
11 | 10 |
| |
12 |
| - | |
13 | 11 |
| |
14 | 12 |
| |
15 | 13 |
| |
| |||
35 | 33 |
| |
36 | 34 |
| |
37 | 35 |
| |
38 |
| - | |
39 |
| - | |
40 |
| - | |
| 36 | + | |
41 | 37 |
| |
42 | 38 |
| |
43 | 39 |
| |
44 | 40 |
| |
45 | 41 |
| |
46 | 42 |
| |
47 |
| - | |
| 43 | + |
0 commit comments