Skip to content

Commit 3fa48ac

Browse files
author
lucifer
committed
feat: 91
1 parent 1137034 commit 3fa48ac

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ leetcode 题解,记录自己的 leetcode 解题之路。
107107

108108
> 这里仅列举具有**代表性题目**,并不是全部题目
109109
110-
目前更新了 212 道题解,加上专题涉及的题目,差不多有 **300 道**
110+
目前更新了 200 多道题解,加上专题涉及的题目,差不多有 **300 道**
111111

112-
- [高频考题(简单 70 题)](./collections/easy.md)
113-
- [高频考题(中等 112 题)](./collections/medium.md)
112+
- [高频考题(简单 72 题)](./collections/easy.md)
113+
- [高频考题(中等 114 题)](./collections/medium.md)
114114
- [高频考题(困难 30 题)](./collections/hard.md)
115115

116116
### 数据结构与算法的总结(23 篇)

SUMMARY.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* [0021. 合并两个有序链表](problems/21.merge-two-sorted-lists.md)
5151
* [0026. 删除排序数组中的重复项](problems/26.remove-duplicates-from-sorted-array.md)
5252
* [0053. 最大子序和](problems/53.maximum-sum-subarray-cn.md)
53+
* [0066. 加一](problems/66.plus-one.md) 91
5354
* [0088. 合并两个有序数组](problems/88.merge-sorted-array.md)
5455
* [0101. 对称二叉树](problems/101.symmetric-tree.md)
5556
* [0104. 二叉树的最大深度](problems/104.maximum-depth-of-binary-tree.md)
@@ -69,7 +70,7 @@
6970
* [0206. 反转链表](problems/206.reverse-linked-list.md)
7071
* [0219. 存在重复元素 II](problems/219.contains-duplicate-ii.md)
7172
* [0226. 翻转二叉树](problems/226.invert-binary-tree.md)
72-
* [0232. 用栈实现队列](problems/232.implement-queue-using-stacks.md)
73+
* [0232. 用栈实现队列](problems/232.implement-queue-using-stacks.md) 91
7374
* [0263. 丑数](problems/263.ugly-number.md)
7475
* [0283. 移动零](problems/283.move-zeroes.md)
7576
* [0342. 4的幂](problems/342.power-of-four.md)
@@ -78,6 +79,7 @@
7879
* [0437. 路径总和 III](problems/437.path-sum-iii.md)
7980
* [0455. 分发饼干](problems/455.AssignCookies.md)
8081
* [0575. 分糖果](problems/575.distribute-candies.md)
82+
* [821. 字符的最短距离](problems/821.shortest-distance-to-a-character.md) 91
8183
* [0874. 模拟行走机器人](problems/874.walking-robot-simulation.md)
8284
* [1260. 二维网格迁移](problems/1260.shift-2d-grid.md)
8385
* [1332. 删除回文子序列](problems/1332.remove-palindromic-subsequences.md)
@@ -153,6 +155,7 @@
153155
* [0365. 水壶问题](problems/365.water-and-jug-problem.md)
154156
* [0378. 有序矩阵中第K小的元素](problems/378.kth-smallest-element-in-a-sorted-matrix.md)
155157
* [0380. 常数时间插入、删除和获取随机元素](problems/380.insert-delete-getrandom-o1.md)
158+
* [0394. 字符串解码](problems/394.decode-string.md) 91
156159
* [0416. 分割等和子集](problems/416.partition-equal-subset-sum.md)
157160
* [0445. 两数相加 II](problems/445.add-two-numbers-ii.md)
158161
* [0454. 四数相加 II](problems/454.4-sum-ii.md)
@@ -194,6 +197,7 @@
194197
* [1310. 子数组异或查询](problems/1310.xor-queries-of-a-subarray.md)
195198
* [1334. 阈值距离内邻居最少的城市](problems/1334.find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.md)
196199
* [1371.每个元音包含偶数次的最长子字符串](problems/1371.find-the-longest-substring-containing-vowels-in-even-counts.md)
200+
* [1381. 设计一个支持增量操作的栈](../problems/1381.design-a-stack-with-increment-operation.md) 91
197201
* [1558. 得到目标数组的最少函数调用次数](../problems/1558.minimum-numbers-of-function-calls-to-make-target-array.md)
198202
* [1631. 最小体力消耗路径](problems/1631.path-with-minimum-effort.md)
199203

collections/easy.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
当然也不排除很多 hard 题目也可以暴力模拟,大家平时多注意数据范围即可。
66

7-
以下是我列举的经典题目:
7+
以下是我列举的经典题目(带 91 字样的表示出自 **91 天学算法**活动)
88

99
- [面试题 17.12. BiNode](../problems/binode-lcci.md)
1010
- [0001. 两数之和](../problems/1.two-sum.md)
1111
- [0020. 有效的括号](../problems/20.valid-parentheses.md)
1212
- [0021. 合并两个有序链表](../problems/21.merge-two-sorted-lists.md)
1313
- [0026. 删除排序数组中的重复项](../problems/26.remove-duplicates-from-sorted-array.md)
1414
- [0053. 最大子序和](../problems/53.maximum-sum-subarray-cn.md)
15+
- [0066. 加一](../problems/66.plus-one.md) 91
1516
- [0088. 合并两个有序数组](../problems/88.merge-sorted-array.md)
1617
- [0101. 对称二叉树](../problems/101.symmetric-tree.md)
1718
- [0104. 二叉树的最大深度](../problems/104.maximum-depth-of-binary-tree.md)
@@ -25,21 +26,22 @@
2526
- [0169. 多数元素](../problems/169.majority-element.md)
2627
- [0172. 阶乘后的零](../problems/172.factorial-trailing-zeroes.md)
2728
- [0190. 颠倒二进制位](../problems/190.reverse-bits.md)
28-
- [0191. 位1的个数](../problems/191.number-of-1-bits.md)
29+
- [0191. 位 1 的个数](../problems/191.number-of-1-bits.md)
2930
- [0198. 打家劫舍](../problems/198.house-robber.md)
3031
- [0203. 移除链表元素](../problems/203.remove-linked-list-elements.md)
3132
- [0206. 反转链表](../problems/206.reverse-linked-list.md)
3233
- [0219. 存在重复元素 II](../problems/219.contains-duplicate-ii.md)
3334
- [0226. 翻转二叉树](../problems/226.invert-binary-tree.md)
34-
- [0232. 用栈实现队列](../problems/232.implement-queue-using-stacks.md)
35+
- [0232. 用栈实现队列](../problems/232.implement-queue-using-stacks.md) 91
3536
- [0263. 丑数](../problems/263.ugly-number.md)
3637
- [0283. 移动零](../problems/283.move-zeroes.md)
37-
- [0342. 4的幂](../problems/342.power-of-four.md)
38+
- [0342. 4 的幂](../problems/342.power-of-four.md)
3839
- [0349. 两个数组的交集](../problems/349.intersection-of-two-arrays.md)
3940
- [0371. 两整数之和](../problems/371.sum-of-two-integers.md)
4041
- [0437. 路径总和 III](../problems/437.path-sum-iii.md)
4142
- [0455. 分发饼干](../problems/455.AssignCookies.md)
4243
- [0575. 分糖果](../problems/575.distribute-candies.md)
44+
- [821. 字符的最短距离](../problems/821.shortest-distance-to-a-character.md) 91
4345
- [0874. 模拟行走机器人](../problems/874.walking-robot-simulation.md)
4446
- [1260. 二维网格迁移](../problems/1260.shift-2d-grid.md)
45-
- [1332. 删除回文子序列](../problems/1332.remove-palindromic-subsequences.md)
47+
- [1332. 删除回文子序列](../problems/1332.remove-palindromic-subsequences.md)

collections/hard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2. 暴力枚举所有可能的算法往上套,比如图的题目。
2323
3. 总结和记忆解题模板,减少解题压力
2424

25-
以下是我列举的经典题目:
25+
以下是我列举的经典题目(带 91 字样的表示出自 **91 天学算法**活动)
2626

2727
- [0004. 寻找两个正序数组的中位数](../problems/4.median-of-two-sorted-arrays.md)
2828
- [0023. 合并 K 个升序链表](../problems/23.merge-k-sorted-lists.md)

collections/medium.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
这部分的题目要不需要我们挖掘题目的内含信息, 将其抽象成简单题目。 要么是一些写起来比较麻烦的题目, 一些人编码能力不行就挂了。因此大家一定要自己做, 即使看了题解”会了“,也要自己码一遍。自己不亲自写一遍,里面的细节永远不知道。
66

7-
以下是我列举的经典题目:
7+
以下是我列举的经典题目(带 91 字样的表示出自 **91 天学算法**活动)
88

99
- [面试题 17.09. 第 k 个数](../../problems/get-kth-magic-number-lcci.md)
1010

@@ -77,6 +77,7 @@
7777
- [0365. 水壶问题](../problems/365.water-and-jug-problem.md)
7878
- [0378. 有序矩阵中第 K 小的元素](../problems/378.kth-smallest-element-in-a-sorted-matrix.md)
7979
- [0380. 常数时间插入、删除和获取随机元素](../problems/380.insert-delete-getrandom-o1.md)
80+
- [0394. 字符串解码](../problems/394.decode-string.md) 91
8081
- [0416. 分割等和子集](../problems/416.partition-equal-subset-sum.md)
8182
- [0445. 两数相加 II](../problems/445.add-two-numbers-ii.md)
8283
- [0454. 四数相加 II](../problems/454.4-sum-ii.md)
@@ -118,5 +119,6 @@
118119
- [1310. 子数组异或查询](../problems/1310.xor-queries-of-a-subarray.md)
119120
- [1334. 阈值距离内邻居最少的城市](../problems/1334.find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.md)
120121
- [1371.每个元音包含偶数次的最长子字符串](../problems/1371.find-the-longest-substring-containing-vowels-in-even-counts.md)
122+
- [1381. 设计一个支持增量操作的栈](../problems/1381.design-a-stack-with-increment-operation.md) 91
121123
- [1558. 得到目标数组的最少函数调用次数](../problems/1558.minimum-numbers-of-function-calls-to-make-target-array.md) 🆕
122124
- [1631.path-with-minimum-effort](../problems/1631.path-with-minimum-effort.md) 🆕

0 commit comments

Comments
 (0)