Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38c0932

Browse filesBrowse files
committed
add 32 solutions
1 parent 9df5a8f commit 38c0932
Copy full SHA for 38c0932

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

62 files changed

+4823
-3592
lines changed

‎assets/scripts/gen-docs.py

Copy file name to clipboardExpand all lines: assets/scripts/gen-docs.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def gen_tag_list():
6161
frames[tag] = pd.DataFrame(
6262
columns=['题号', '标题', '题解', '力扣', '标签', '难度'])
6363
frame = frames[tag]
64-
frame.loc[len(frame.index)] = utils.gen_frame_items(index, df)
64+
# 限制每个 tag 的题数,文件太大会部署失败
65+
if len(frame.index) < 300:
66+
frame.loc[len(frame.index)] = utils.gen_frame_items(index, df)
6567
index += 1
6668

6769
for idx, frame in frames.items():

‎src/.vuepress/sidebar.ts

Copy file name to clipboardExpand all lines: src/.vuepress/sidebar.ts
+33-1Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ export default sidebar({
619619
"collapsible": true,
620620
"children": [
621621
"1304",
622+
"1309",
622623
"1312",
623624
"1313",
624625
"1317",
@@ -641,25 +642,43 @@ export default sidebar({
641642
"1380",
642643
"1381",
643644
"1385",
644-
"1389"
645+
"1389",
646+
"1394",
647+
"1399"
645648
]
646649
},
647650
{
648651
"text": "1400-1499",
649652
"collapsible": true,
650653
"children": [
654+
"1403",
651655
"1405",
656+
"1408",
657+
"1413",
658+
"1417",
652659
"1419",
660+
"1422",
653661
"1431",
662+
"1436",
663+
"1437",
654664
"1441",
665+
"1446",
655666
"1448",
667+
"1450",
656668
"1455",
657669
"1456",
670+
"1460",
671+
"1464",
658672
"1466",
673+
"1470",
659674
"1472",
660675
"1475",
676+
"1480",
677+
"1486",
678+
"1491",
661679
"1492",
662680
"1493",
681+
"1496",
663682
"1497",
664683
"1498"
665684
]
@@ -668,11 +687,23 @@ export default sidebar({
668687
"text": "1500-1599",
669688
"collapsible": true,
670689
"children": [
690+
"1502",
691+
"1507",
692+
"1512",
671693
"1517",
694+
"1518",
672695
"1522",
696+
"1523",
673697
"1527",
698+
"1528",
699+
"1534",
674700
"1539",
701+
"1544",
675702
"1545",
703+
"1550",
704+
"1556",
705+
"1560",
706+
"1566",
676707
"1574",
677708
"1590",
678709
"1593"
@@ -784,6 +815,7 @@ export default sidebar({
784815
"2461",
785816
"2462",
786817
"2463",
818+
"2471",
787819
"2490",
788820
"2491"
789821
]

‎src/book/enumeration.md

Copy file name to clipboardExpand all lines: src/book/enumeration.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| 1 | 两数之和 | [[]](/problem/0001.md) | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) | 🟢 | [🀄️](https://leetcode.cn/problems/two-sum) [🔗](https://leetcode.com/problems/two-sum) |
1414
| 204 | 计数质数 | | [`数组`](/tag/array.md) [`数学`](/tag/math.md) [`枚举`](/tag/enumeration.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/count-primes) [🔗](https://leetcode.com/problems/count-primes) |
1515
| 1925 | 统计平方和三元组的数目 | | [`数学`](/tag/math.md) [`枚举`](/tag/enumeration.md) | 🟢 | [🀄️](https://leetcode.cn/problems/count-square-sum-triples) [🔗](https://leetcode.com/problems/count-square-sum-triples) |
16-
| 1450 | 在既定时间做作业的学生人数 | | [`数组`](/tag/array.md) | 🟢 | [🀄️](https://leetcode.cn/problems/number-of-students-doing-homework-at-a-given-time) [🔗](https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time) |
16+
| 1450 | 在既定时间做作业的学生人数 | [[]](/problem/1450.md) | [`数组`](/tag/array.md) | 🟢 | [🀄️](https://leetcode.cn/problems/number-of-students-doing-homework-at-a-given-time) [🔗](https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time) |
1717
| 1620 | 网络信号最好的坐标 | | [`数组`](/tag/array.md) [`枚举`](/tag/enumeration.md) | 🟠 | [🀄️](https://leetcode.cn/problems/coordinate-with-maximum-network-quality) [🔗](https://leetcode.com/problems/coordinate-with-maximum-network-quality) |
1818
| 剑指 Offer 57-II | 和为s的连续正数序列 | [[]](/offer/jz_offer_57_2.md) | [`数学`](/tag/math.md) [`双指针`](/tag/two-pointers.md) [`枚举`](/tag/enumeration.md) | 🟢 | [🀄️](https://leetcode.cn/problems/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof) |
1919
| 800 | 相似 RGB 颜色 🔒 | | [`数学`](/tag/math.md) [`字符串`](/tag/string.md) [`枚举`](/tag/enumeration.md) | 🟢 | [🀄️](https://leetcode.cn/problems/similar-rgb-color) [🔗](https://leetcode.com/problems/similar-rgb-color) |

‎src/book/string.md

Copy file name to clipboardExpand all lines: src/book/string.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ BF 算法的思想可以用一句话来概括:在主串中检查起始位置
9797
| 686 | 重复叠加字符串匹配 | | [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟠 | [🀄️](https://leetcode.cn/problems/repeated-string-match) [🔗](https://leetcode.com/problems/repeated-string-match) |
9898
| 1668 | 最大重复子字符串 | | [`字符串`](/tag/string.md) [`动态规划`](/tag/dynamic-programming.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/maximum-repeating-substring) [🔗](https://leetcode.com/problems/maximum-repeating-substring) |
9999
| 796 | 旋转字符串 | [[]](/problem/0796.md) | [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/rotate-string) [🔗](https://leetcode.com/problems/rotate-string) |
100-
| 1408 | 数组中的字符串匹配 | | [`数组`](/tag/array.md) [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/string-matching-in-an-array) [🔗](https://leetcode.com/problems/string-matching-in-an-array) |
100+
| 1408 | 数组中的字符串匹配 | [[]](/problem/1408.md) | [`数组`](/tag/array.md) [`字符串`](/tag/string.md) [`字符串匹配`](/tag/string-matching.md) | 🟢 | [🀄️](https://leetcode.cn/problems/string-matching-in-an-array) [🔗](https://leetcode.com/problems/string-matching-in-an-array) |
101101
| 2156 | 查找给定哈希值的子串 | | [`字符串`](/tag/string.md) [`滑动窗口`](/tag/sliding-window.md) [`哈希函数`](/tag/hash-function.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/find-substring-with-given-hash-value) [🔗](https://leetcode.com/problems/find-substring-with-given-hash-value) |
102102

103103
#### 字典树

‎src/book/tree.md

Copy file name to clipboardExpand all lines: src/book/tree.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ class NumArray {
11231123
| :------: | :------ | :------: | :------ | :------: | :------: |
11241124
| 370 | 区间加法 🔒 | | [`数组`](/tag/array.md) [`前缀和`](/tag/prefix-sum.md) | 🟠 | [🀄️](https://leetcode.cn/problems/range-addition) [🔗](https://leetcode.com/problems/range-addition) |
11251125
| 1109 | 航班预订统计 | | [`数组`](/tag/array.md) [`前缀和`](/tag/prefix-sum.md) | 🟠 | [🀄️](https://leetcode.cn/problems/corporate-flight-bookings) [🔗](https://leetcode.com/problems/corporate-flight-bookings) |
1126-
| 1450 | 在既定时间做作业的学生人数 | | [`数组`](/tag/array.md) | 🟢 | [🀄️](https://leetcode.cn/problems/number-of-students-doing-homework-at-a-given-time) [🔗](https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time) |
1126+
| 1450 | 在既定时间做作业的学生人数 | [[]](/problem/1450.md) | [`数组`](/tag/array.md) | 🟢 | [🀄️](https://leetcode.cn/problems/number-of-students-doing-homework-at-a-given-time) [🔗](https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time) |
11271127
| 673 | 最长递增子序列的个数 | | [`树状数组`](/tag/binary-indexed-tree.md) [`线段树`](/tag/segment-tree.md) [`数组`](/tag/array.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/number-of-longest-increasing-subsequence) [🔗](https://leetcode.com/problems/number-of-longest-increasing-subsequence) |
11281128
| 1310 | 子数组异或查询 | | [`位运算`](/tag/bit-manipulation.md) [`数组`](/tag/array.md) [`前缀和`](/tag/prefix-sum.md) | 🟠 | [🀄️](https://leetcode.cn/problems/xor-queries-of-a-subarray) [🔗](https://leetcode.com/problems/xor-queries-of-a-subarray) |
11291129
| 1851 | 包含每个查询的最小区间 | | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`排序`](/tag/sorting.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/minimum-interval-to-include-each-query) [🔗](https://leetcode.com/problems/minimum-interval-to-include-each-query) |
@@ -1154,7 +1154,7 @@ class NumArray {
11541154
| 303 | 区域和检索 - 数组不可变 | [[]](/problem/0303.md) | [`设计`](/tag/design.md) [`数组`](/tag/array.md) [`前缀和`](/tag/prefix-sum.md) | 🟢 | [🀄️](https://leetcode.cn/problems/range-sum-query-immutable) [🔗](https://leetcode.com/problems/range-sum-query-immutable) |
11551155
| 307 | 区域和检索 - 数组可修改 | [[]](/problem/0307.md) | [`设计`](/tag/design.md) [`树状数组`](/tag/binary-indexed-tree.md) [`线段树`](/tag/segment-tree.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/range-sum-query-mutable) [🔗](https://leetcode.com/problems/range-sum-query-mutable) |
11561156
| 315 | 计算右侧小于当前元素的个数 | | [`树状数组`](/tag/binary-indexed-tree.md) [`线段树`](/tag/segment-tree.md) [`数组`](/tag/array.md) `4+` | 🔴 | [🀄️](https://leetcode.cn/problems/count-of-smaller-numbers-after-self) [🔗](https://leetcode.com/problems/count-of-smaller-numbers-after-self) |
1157-
| 1450 | 在既定时间做作业的学生人数 | | [`数组`](/tag/array.md) | 🟢 | [🀄️](https://leetcode.cn/problems/number-of-students-doing-homework-at-a-given-time) [🔗](https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time) |
1157+
| 1450 | 在既定时间做作业的学生人数 | [[]](/problem/1450.md) | [`数组`](/tag/array.md) | 🟢 | [🀄️](https://leetcode.cn/problems/number-of-students-doing-homework-at-a-given-time) [🔗](https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time) |
11581158
| 354 | 俄罗斯套娃信封问题 | [[]](/problem/0354.md) | [`数组`](/tag/array.md) [`二分查找`](/tag/binary-search.md) [`动态规划`](/tag/dynamic-programming.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/russian-doll-envelopes) [🔗](https://leetcode.com/problems/russian-doll-envelopes) |
11591159
| 673 | 最长递增子序列的个数 | | [`树状数组`](/tag/binary-indexed-tree.md) [`线段树`](/tag/segment-tree.md) [`数组`](/tag/array.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/number-of-longest-increasing-subsequence) [🔗](https://leetcode.com/problems/number-of-longest-increasing-subsequence) |
11601160
| 1310 | 子数组异或查询 | | [`位运算`](/tag/bit-manipulation.md) [`数组`](/tag/array.md) [`前缀和`](/tag/prefix-sum.md) | 🟠 | [🀄️](https://leetcode.cn/problems/xor-queries-of-a-subarray) [🔗](https://leetcode.com/problems/xor-queries-of-a-subarray) |

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.