File tree
803 files changed
+1114
-4563
lines changed- lcci
- 02.05.Sum Lists
- 03.02.Min Stack
- 04.05.Legal Binary Search Tree
- 04.10.Check SubTree
- 16.07.Maximum
- 16.15.Master Mind
- 17.23.Max Black Square
- lcof
- 面试题12. 矩阵中的路径
- 面试题19. 正则表达式匹配
- 面试题25. 合并两个排序的链表
- 面试题30. 包含min函数的栈
- 面试题41. 数据流中的中位数
- 面试题45. 把数组排成最小的数
- 面试题47. 礼物的最大价值
- 面试题52. 两个链表的第一个公共节点
- 面试题59 - II. 队列的最大值
- lcof2
- 剑指 Offer II 023. 两个链表的第一个重合节点
- 剑指 Offer II 038. 每日温度
- 剑指 Offer II 053. 二叉搜索树中的中序后继
- 剑指 Offer II 057. 值和下标之差都在给定的范围内
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 091. 粉刷房子
- 剑指 Offer II 095. 最长公共子序列
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 097. 子序列的数目
- lcp
- LCP 01. 猜数字
- LCP 03. 机器人大冒险
- LCP 19. 秋叶收藏集
- LCP 34. 二叉树染色
- LCP 52. 二叉搜索树染色
- LCP 55. 采集果实
- LCP 56. 信物传送
- lcs/LCS 03. 主题空间
- solution
- 0000-0099
- 0002.Add Two Numbers
- 0010.Regular Expression Matching
- 0012.Integer to Roman
- 0020.Valid Parentheses
- 0021.Merge Two Sorted Lists
- 0072.Edit Distance
- 0087.Scramble String
- 0091.Decode Ways
- 0092.Reverse Linked List II
- 0094.Binary Tree Inorder Traversal
- 0097.Interleaving String
- 0100-0199
- 0100.Same Tree
- 0112.Path Sum
- 0115.Distinct Subsequences
- 0120.Triangle
- 0130.Surrounded Regions
- 0131.Palindrome Partitioning
- 0160.Intersection of Two Linked Lists
- 0185.Department Top Three Salaries
- 0196.Delete Duplicate Emails
- 0197.Rising Temperature
- 0200-0299
- 0219.Contains Duplicate II
- 0220.Contains Duplicate III
- 0235.Lowest Common Ancestor of a Binary Search Tree
- 0238.Product of Array Except Self
- 0256.Paint House
- 0285.Inorder Successor in BST
- 0295.Find Median from Data Stream
- 0300-0399
- 0304.Range Sum Query 2D - Immutable
- 0312.Burst Balloons
- 0329.Longest Increasing Path in a Matrix
- 0383.Ransom Note
- 0389.Find the Difference
- 0400-0499
- 0403.Frog Jump
- 0445.Add Two Numbers II
- 0454.4Sum II
- 0466.Count The Repetitions
- 0468.Validate IP Address
- 0475.Heaters
- 0486.Predict the Winner
- 0500-0599
- 0550.Game Play Analysis IV
- 0572.Subtree of Another Tree
- 0597.Friend Requests I Overall Acceptance Rate
- 0600-0699
- 0615.Average Salary Departments VS Company
- 0617.Merge Two Binary Trees
- 0623.Add One Row to Tree
- 0655.Print Binary Tree
- 0664.Strange Printer
- 0669.Trim a Binary Search Tree
- 0680.Valid Palindrome II
- 0688.Knight Probability in Chessboard
- 0700-0799
- 0703.Kth Largest Element in a Stream
- 0733.Flood Fill
- 0735.Asteroid Collision
- 0739.Daily Temperatures
- 0741.Cherry Pickup
- 0789.Escape The Ghosts
- 0799.Champagne Tower
- 0800-0899
- 0808.Soup Servings
- 0819.Most Common Word
- 0822.Card Flipping Game
- 0827.Making A Large Island
- 0837.New 21 Game
- 0847.Shortest Path Visiting All Nodes
- 0877.Stone Game
- 0883.Projection Area of 3D Shapes
- 0887.Super Egg Drop
- 0894.All Possible Full Binary Trees
- 0900-0999
- 0940.Distinct Subsequences II
- 0956.Tallest Billboard
- 0963.Minimum Area Rectangle II
- 0973.K Closest Points to Origin
- 0980.Unique Paths III
- 0986.Interval List Intersections
- 0987.Vertical Order Traversal of a Binary Tree
- 0994.Rotting Oranges
- 0998.Maximum Binary Tree II
- 1000-1099
- 1001.Grid Illumination
- 1008.Construct Binary Search Tree from Preorder Traversal
- 1012.Numbers With Repeated Digits
- 1020.Number of Enclaves
- 1027.Longest Arithmetic Subsequence
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
803 files changed
+1114
-4563
lines changedDiff for: .prettierrc
+1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
|
Diff for: lcci/02.05.Sum Lists/README.md
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
| 202 | + | |
206 | 203 |
| |
207 | 204 |
| |
208 | 205 |
| |
|
Diff for: lcci/02.05.Sum Lists/README_EN.md
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
| 197 | + | |
201 | 198 |
| |
202 | 199 |
| |
203 | 200 |
| |
|
Diff for: lcci/02.05.Sum Lists/Solution.ts
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
| 13 | + | |
17 | 14 |
| |
18 | 15 |
| |
19 | 16 |
| |
|
Diff for: lcci/03.02.Min Stack/README.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 |
| - | |
176 |
| - | |
177 |
| - | |
| 175 | + | |
178 | 176 |
| |
179 | 177 |
| |
180 | 178 |
| |
|
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
| 232 | + | |
236 | 233 |
| |
237 | 234 |
| |
238 | 235 |
| |
|
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
| 261 | + | |
265 | 262 |
| |
266 | 263 |
| |
267 | 264 |
| |
|
Diff for: lcci/04.10.Check SubTree/README.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
167 |
| - | |
168 |
| - | |
| 166 | + | |
169 | 167 |
| |
170 | 168 |
| |
171 | 169 |
| |
|
Diff for: lcci/04.10.Check SubTree/README_EN.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
170 |
| - | |
171 |
| - | |
| 169 | + | |
172 | 170 |
| |
173 | 171 |
| |
174 | 172 |
| |
|
Diff for: lcci/04.10.Check SubTree/Solution.ts
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
| 23 | + | |
26 | 24 |
| |
27 | 25 |
| |
28 | 26 |
|
Diff for: lcci/16.07.Maximum/README.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
| 78 | + | |
81 | 79 |
| |
82 | 80 |
| |
83 | 81 |
| |
|
Diff for: lcci/16.07.Maximum/README_EN.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 |
| - | |
68 |
| - | |
| 66 | + | |
69 | 67 |
| |
70 | 68 |
| |
71 | 69 |
| |
|
Diff for: lcci/16.07.Maximum/Solution.ts
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
| 2 | + | |
5 | 3 |
| |
6 | 4 |
|
Diff for: lcci/16.15.Master Mind/README.md
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
| 143 | + | |
147 | 144 |
| |
148 | 145 |
| |
149 | 146 |
| |
|
Diff for: lcci/16.15.Master Mind/README_EN.md
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
| 136 | + | |
140 | 137 |
| |
141 | 138 |
| |
142 | 139 |
| |
|
Diff for: lcci/16.15.Master Mind/Solution.js
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
| 20 | + | |
24 | 21 |
| |
25 | 22 |
|
Diff for: lcci/17.23.Max Black Square/README.md
+2-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
| 210 | + | |
| 211 | + | |
216 | 212 |
| |
217 | 213 |
| |
218 | 214 |
| |
|
+2-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
| 188 | + | |
| 189 | + | |
194 | 190 |
| |
195 | 191 |
| |
196 | 192 |
| |
|
Diff for: lcci/17.23.Max Black Square/Solution.ts
+2-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
| 3 | + | |
| 4 | + | |
9 | 5 |
| |
10 | 6 |
| |
11 | 7 |
| |
|
Diff for: lcof/面试题12. 矩阵中的路径/README.md
+1-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
| 247 | + | |
253 | 248 |
| |
254 | 249 |
| |
255 | 250 |
| |
|
Diff for: lcof/面试题12. 矩阵中的路径/Solution.ts
+1-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 13 | + | |
19 | 14 |
| |
20 | 15 |
| |
21 | 16 |
| |
|
Diff for: lcof/面试题19. 正则表达式匹配/README.md
+2-9
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
320 |
| - | |
321 |
| - | |
322 |
| - | |
323 |
| - | |
| 320 | + | |
324 | 321 |
| |
325 | 322 |
| |
326 |
| - | |
327 |
| - | |
328 |
| - | |
329 |
| - | |
330 |
| - | |
| 323 | + | |
331 | 324 |
| |
332 | 325 |
| |
333 | 326 |
| |
|
Diff for: lcof/面试题25. 合并两个排序的链表/README.md
+2-8
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
340 |
| - | |
341 |
| - | |
342 |
| - | |
343 |
| - | |
| 340 | + | |
344 | 341 |
| |
345 | 342 |
| |
346 | 343 |
| |
| |||
371 | 368 |
| |
372 | 369 |
| |
373 | 370 |
| |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 |
| - | |
| 371 | + | |
378 | 372 |
| |
379 | 373 |
| |
380 | 374 |
| |
|
Diff for: lcof/面试题25. 合并两个排序的链表/Solution.ts
+1-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
| 13 | + | |
17 | 14 |
| |
18 | 15 |
| |
19 | 16 |
| |
|
Diff for: lcof/面试题30. 包含min函数的栈/README.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
240 |
| - | |
241 |
| - | |
| 239 | + | |
242 | 240 |
| |
243 | 241 |
| |
244 | 242 |
| |
|
Diff for: lcof/面试题41. 数据流中的中位数/README.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
282 |
| - | |
283 |
| - | |
284 |
| - | |
| 282 | + | |
285 | 283 |
| |
286 | 284 |
| |
287 | 285 |
| |
|
Diff for: lcof/面试题41. 数据流中的中位数/Solution.js
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
| 31 | + | |
34 | 32 |
|
Diff for: lcof/面试题45. 把数组排成最小的数/README.md
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
| 136 | + | |
139 | 137 |
| |
140 | 138 |
| |
141 | 139 |
| |
|
Diff for: lcof/面试题45. 把数组排成最小的数/Solution.ts
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
| 2 | + | |
5 | 3 |
|
Diff for: lcof/面试题47. 礼物的最大价值/README.md
+2-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
216 |
| - | |
217 |
| - | |
218 |
| - | |
| 216 | + | |
219 | 217 |
| |
220 | 218 |
| |
221 | 219 |
| |
| |||
245 | 243 |
| |
246 | 244 |
| |
247 | 245 |
| |
248 |
| - | |
249 |
| - | |
250 |
| - | |
| 246 | + | |
251 | 247 |
| |
252 | 248 |
| |
253 | 249 |
| |
|
Diff for: lcof/面试题47. 礼物的最大价值/Solution.js
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
12 |
| - | |
13 |
| - | |
| 11 | + | |
14 | 12 |
| |
15 | 13 |
| |
16 | 14 |
| |
|
Diff for: lcof/面试题47. 礼物的最大价值/Solution.ts
+1-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
| 7 | + | |
10 | 8 |
| |
11 | 9 |
| |
12 | 10 |
| |
|
0 commit comments