Skip to content

Commit 9510fa7

Browse files
committed
add 334 443 605 and 8 more problems
1 parent 5b57ca7 commit 9510fa7

37 files changed

+1664
-51
lines changed

src/.vuepress/sidebar.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ export default sidebar({
249249
"0316",
250250
"0322",
251251
"0328",
252+
"0334",
252253
"0343",
253254
"0344",
254255
"0345",
@@ -286,6 +287,7 @@ export default sidebar({
286287
"0438",
287288
"0440",
288289
"0442",
290+
"0443",
289291
"0445",
290292
"0450",
291293
"0451",
@@ -325,12 +327,14 @@ export default sidebar({
325327
"text": "0600-0699",
326328
"collapsible": true,
327329
"children": [
330+
"0605",
328331
"0611",
329332
"0617",
330333
"0622",
331334
"0632",
332335
"0637",
333336
"0641",
337+
"0643",
334338
"0654",
335339
"0662",
336340
"0670",
@@ -393,10 +397,12 @@ export default sidebar({
393397
"text": "1000-1099",
394398
"collapsible": true,
395399
"children": [
400+
"1004",
396401
"1008",
397402
"1021",
398403
"1047",
399404
"1049",
405+
"1071",
400406
"1081"
401407
]
402408
},
@@ -432,7 +438,9 @@ export default sidebar({
432438
"children": [
433439
"1405",
434440
"1419",
441+
"1431",
435442
"1441",
443+
"1456",
436444
"1472",
437445
"1475",
438446
"1497"
@@ -448,6 +456,20 @@ export default sidebar({
448456
"1593"
449457
]
450458
},
459+
{
460+
"text": "1600-1699",
461+
"collapsible": true,
462+
"children": [
463+
"1679"
464+
]
465+
},
466+
{
467+
"text": "1700-1799",
468+
"collapsible": true,
469+
"children": [
470+
"1768"
471+
]
472+
},
451473
{
452474
"text": "1800-1899",
453475
"collapsible": true,
@@ -500,7 +522,8 @@ export default sidebar({
500522
"text": "2500-2599",
501523
"collapsible": true,
502524
"children": [
503-
"2530"
525+
"2530",
526+
"2583"
504527
]
505528
},
506529
{

src/book/slide_window.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,10 @@ var lengthOfLongestSubstring = function (s) {
548548
| 题号 | 标题 | 题解 | 标签 | 难度 |
549549
| :------: | :------ | :------: | :------ | :------ |
550550
| 1343 | [大小为 K 且平均值大于等于阈值的子数组数目](https://leetcode.com/problems/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold) | | [`数组`](/tag/array.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
551-
| 643 | [子数组最大平均数 I](https://leetcode.com/problems/maximum-average-subarray-i) | | [`数组`](/tag/array.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#15bd66>Easy</font> |
551+
| 643 | [子数组最大平均数 I](https://leetcode.com/problems/maximum-average-subarray-i) | [[]](/problem/0643.md) | [`数组`](/tag/array.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#15bd66>Easy</font> |
552552
| 1052 | [爱生气的书店老板](https://leetcode.com/problems/grumpy-bookstore-owner) | | [`数组`](/tag/array.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
553553
| 1423 | [可获得的最大点数](https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards) | | [`数组`](/tag/array.md) [`前缀和`](/tag/prefix-sum.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
554-
| 1456 | [定长子串中元音的最大数目](https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length) | | [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
554+
| 1456 | [定长子串中元音的最大数目](https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length) | [[]](/problem/1456.md) | [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
555555
| 567 | [字符串的排列](https://leetcode.com/problems/permutation-in-string) | [[]](/problem/0567.md) | [`哈希表`](/tag/hash-table.md) [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) `1+` | <font color=#ffb800>Medium</font> |
556556
| 1100 | [长度为 K 的无重复字符子串](https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters) | | [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
557557
| 1151 | [最少交换次数来组合所有的 1](https://leetcode.com/problems/minimum-swaps-to-group-all-1s-together) | | [`数组`](/tag/array.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
@@ -575,7 +575,7 @@ var lengthOfLongestSubstring = function (s) {
575575
| 718 | [最长重复子数组](https://leetcode.com/problems/maximum-length-of-repeated-subarray) | | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`动态规划`](/tag/dynamic-programming.md) `3+` | <font color=#ffb800>Medium</font> |
576576
| 209 | [长度最小的子数组](https://leetcode.com/problems/minimum-size-subarray-sum) | [[]](/problem/0209.md) | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`前缀和`](/tag/prefix-sum.md) `1+` | <font color=#ffb800>Medium</font> |
577577
| 862 | [和至少为 K 的最短子数组](https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k) | | [`队列`](/tag/queue.md) [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) `4+` | <font color=#ff334b>Hard</font> |
578-
| 1004 | [最大连续1的个数 III](https://leetcode.com/problems/max-consecutive-ones-iii) | | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`前缀和`](/tag/prefix-sum.md) `1+` | <font color=#ffb800>Medium</font> |
578+
| 1004 | [最大连续1的个数 III](https://leetcode.com/problems/max-consecutive-ones-iii) | [[]](/problem/1004.md) | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`前缀和`](/tag/prefix-sum.md) `1+` | <font color=#ffb800>Medium</font> |
579579
| 1658 | [将 x 减到 0 的最小操作数](https://leetcode.com/problems/minimum-operations-to-reduce-x-to-zero) | | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`二分查找`](/tag/binary-search.md) `2+` | <font color=#ffb800>Medium</font> |
580580
| 424 | [替换后的最长重复字符](https://leetcode.com/problems/longest-repeating-character-replacement) | | [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
581581
| 3 | [无重复字符的最长子串](https://leetcode.com/problems/longest-substring-without-repeating-characters) | [[]](/problem/0003.md) | [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |

src/book/two_pointer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
| 977 | [有序数组的平方](https://leetcode.com/problems/squares-of-a-sorted-array) | | [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) [`排序`](/tag/sorting.md) | <font color=#15bd66>Easy</font> |
4848
| 881 | [救生艇](https://leetcode.com/problems/boats-to-save-people) | | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) `1+` | <font color=#ffb800>Medium</font> |
4949
| 42 | [接雨水](https://leetcode.com/problems/trapping-rain-water) | [[]](/problem/0042.md) | [``](/tag/stack.md) [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) `2+` | <font color=#ff334b>Hard</font> |
50-
| 443 | [压缩字符串](https://leetcode.com/problems/string-compression) | | [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) | <font color=#ffb800>Medium</font> |
50+
| 443 | [压缩字符串](https://leetcode.com/problems/string-compression) | [[]](/problem/0443.md) | [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) | <font color=#ffb800>Medium</font> |
5151

5252
* 快慢指针
5353

@@ -61,7 +61,7 @@
6161
| 845 | [数组中的最长山脉](https://leetcode.com/problems/longest-mountain-in-array) | | [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) [`动态规划`](/tag/dynamic-programming.md) `1+` | <font color=#ffb800>Medium</font> |
6262
| 88 | [合并两个有序数组](https://leetcode.com/problems/merge-sorted-array) | [[]](/problem/0088.md) | [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) [`排序`](/tag/sorting.md) | <font color=#15bd66>Easy</font> |
6363
| 719 | [找出第 K 小的数对距离](https://leetcode.com/problems/find-k-th-smallest-pair-distance) | | [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) [`二分查找`](/tag/binary-search.md) `1+` | <font color=#ff334b>Hard</font> |
64-
| 334 | [递增的三元子序列](https://leetcode.com/problems/increasing-triplet-subsequence) | | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) | <font color=#ffb800>Medium</font> |
64+
| 334 | [递增的三元子序列](https://leetcode.com/problems/increasing-triplet-subsequence) | [[]](/problem/0334.md) | [`贪心`](/tag/greedy.md) [`数组`](/tag/array.md) | <font color=#ffb800>Medium</font> |
6565
| 978 | [最长湍流子数组](https://leetcode.com/problems/longest-turbulent-subarray) | | [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) [`滑动窗口`](/tag/sliding-window.md) | <font color=#ffb800>Medium</font> |
6666
| 剑指 Offer 21 | [调整数组顺序使奇数位于偶数前面](https://leetcode.cn/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof) | [[]](/offer/jz_offer_21_1.md) | [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) [`排序`](/tag/sorting.md) | <font color=#15bd66>Easy</font> |
6767

src/plan/codetop_list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ headerDepth: 0
174174
| 96 | [不同的二叉搜索树](https://leetcode.com/problems/unique-binary-search-trees) | [[]](/problem/0096.md) | [``](/tag/tree.md) [`二叉搜索树`](/tag/binary-search-tree.md) [`数学`](/tag/math.md) `2+` | <font color=#ffb800>Medium</font> | 24 |
175175
| 120 | [三角形最小路径和](https://leetcode.com/problems/triangle) | [[]](/problem/0120.md) | [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) | <font color=#ffb800>Medium</font> | 23 |
176176
| 400 | [第 N 位数字](https://leetcode.com/problems/nth-digit) | | [`数学`](/tag/math.md) [`二分查找`](/tag/binary-search.md) | <font color=#ffb800>Medium</font> | 23 |
177-
| 1004 | [最大连续1的个数 III](https://leetcode.com/problems/max-consecutive-ones-iii) | | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`前缀和`](/tag/prefix-sum.md) `1+` | <font color=#ffb800>Medium</font> | 22 |
177+
| 1004 | [最大连续1的个数 III](https://leetcode.com/problems/max-consecutive-ones-iii) | [[]](/problem/1004.md) | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`前缀和`](/tag/prefix-sum.md) `1+` | <font color=#ffb800>Medium</font> | 22 |
178178
| 349 | [两个数组的交集](https://leetcode.com/problems/intersection-of-two-arrays) | | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`双指针`](/tag/two-pointers.md) `2+` | <font color=#15bd66>Easy</font> | 22 |
179179
| 剑指 Offer 61 | [扑克牌中的顺子](https://leetcode.cn/problems/bu-ke-pai-zhong-de-shun-zi-lcof) | [[]](/offer/jz_offer_61_1.md) | [`数组`](/tag/array.md) [`排序`](/tag/sorting.md) | <font color=#15bd66>Easy</font> | 21 |
180180
| 85 | [最大矩形](https://leetcode.com/problems/maximal-rectangle) | [[]](/problem/0085.md) | [``](/tag/stack.md) [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) `2+` | <font color=#ff334b>Hard</font> | 21 |
@@ -199,7 +199,7 @@ headerDepth: 0
199199
| 395 | [至少有 K 个重复字符的最长子串](https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters) | | [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) [`分治`](/tag/divide-and-conquer.md) `1+` | <font color=#ffb800>Medium</font> | 18 |
200200
| 63 | [不同路径 II](https://leetcode.com/problems/unique-paths-ii) | [[]](/problem/0063.md) | [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) [`矩阵`](/tag/matrix.md) | <font color=#ffb800>Medium</font> | 18 |
201201
| 279 | [完全平方数](https://leetcode.com/problems/perfect-squares) | [[]](/problem/0279.md) | [`广度优先搜索`](/tag/breadth-first-search.md) [`数学`](/tag/math.md) [`动态规划`](/tag/dynamic-programming.md) | <font color=#ffb800>Medium</font> | 18 |
202-
| 443 | [压缩字符串](https://leetcode.com/problems/string-compression) | | [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) | <font color=#ffb800>Medium</font> | 18 |
202+
| 443 | [压缩字符串](https://leetcode.com/problems/string-compression) | [[]](/problem/0443.md) | [`双指针`](/tag/two-pointers.md) [`字符串`](/tag/string.md) | <font color=#ffb800>Medium</font> | 18 |
203203
| 剑指 Offer 45 | [把数组排成最小的数](https://leetcode.cn/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof) | | [`贪心`](/tag/greedy.md) [`字符串`](/tag/string.md) [`排序`](/tag/sorting.md) | <font color=#ffb800>Medium</font> | 18 |
204204
| 37 | [解数独](https://leetcode.com/problems/sudoku-solver) | [[]](/problem/0037.md) | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`回溯`](/tag/backtracking.md) `1+` | <font color=#ff334b>Hard</font> | 18 |
205205
| 459 | [重复的子字符串](https://leetcode.com/problems/repeated-substring-pattern) | [[]](/problem/0459.md) | [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | <font color=#15bd66>Easy</font> | 18 |

0 commit comments

Comments
 (0)