Skip to content

Commit 8ef5c14

Browse files
committed
add 4 solutions
1 parent 8726c70 commit 8ef5c14

40 files changed

+384
-1791
lines changed

assets/scripts/gen-docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def gen_solution_list():
3434
frame_count += 1
3535

3636
table = utils.gen_markdown_table(frame)
37-
content = "已完成 {} 道\n\n".format(frame_count) + table + "\n\n由于编译限制,本目录只展示 800 道。\n\n"
37+
content = "已完成 {} 道\n\n".format(frame_count) + table + "\n\n由于编译限制,本目录只展示 200 道。\n\n"
3838

3939
with open(const.problem_readme, 'w', encoding='utf-8') as f:
4040
f.writelines("# 目录\n\n")

assets/scripts/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def gen_markdown_table(frame, need_sort = True):
5151

5252

5353
# 限制表格中的题数,文件太大会部署失败
54-
if len(frame) > 500:
55-
frame = frame.head(500)
54+
if len(frame) > 200:
55+
frame = frame.head(200)
5656
H = frame.shape[0]
5757

5858
for i in range(H):
3.96 KB
Loading
Loading
Loading
Loading
330 KB
Loading

src/.vuepress/sidebar.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ export default sidebar({
949949
"2022",
950950
"2027",
951951
"2032",
952+
"2033",
952953
"2037",
953954
"2042",
954955
"2044",
@@ -1108,6 +1109,7 @@ export default sidebar({
11081109
"2529",
11091110
"2530",
11101111
"2542",
1112+
"2551",
11111113
"2554",
11121114
"2558",
11131115
"2559",
@@ -1295,7 +1297,9 @@ export default sidebar({
12951297
"3318",
12961298
"3319",
12971299
"3321",
1298-
"3356"
1300+
"3356",
1301+
"3394",
1302+
"3396"
12991303
]
13001304
}
13011305

src/.vuepress/theme.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ export default hopeTheme(
4040

4141
print: false,
4242

43-
footer: '',
43+
footer: '<div class="vp-copyright"><p>版权所有,侵权必究 © 2022 - 2025 2xiao</p><p><img src="assets/image/beian.png" style="width: 16px; vertical-align: text-top" alt="">&nbsp;&nbsp;<a href="https://beian.mps.gov.cn/#/query/webSearch?code=11010802045636" rel="noreferrer" target="_blank">京公网安备11010802045636号</a>&nbsp;&nbsp;<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index">京ICP备2025118976号</a></p></div>',
4444

4545
displayFooter: true,
4646

47+
copyright: false,
48+
4749
// locales: {
4850
// /**
4951
// * Chinese locale config

src/book/hash.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ jsonToMap('[[true,7],[{"foo":3},["abc"]]]');
647647
<!-- Please keep comment here to allow auto update -->
648648
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
649649

650+
650651
## 相关题目
651652

652653
<!-- prettier-ignore -->
@@ -684,3 +685,4 @@ jsonToMap('[[true,7],[{"foo":3},["abc"]]]');
684685
| 149 | 直线上最多的点数 | [[]](/problem/0149.md) | [`几何`](/tag/geometry.md) [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/max-points-on-a-line) [🔗](https://leetcode.com/problems/max-points-on-a-line) |
685686
| 359 | 日志速率限制器 🔒 | | [`设计`](/tag/design.md) [`哈希表`](/tag/hash-table.md) [`数据流`](/tag/data-stream.md) | 🟢 | [🀄️](https://leetcode.cn/problems/logger-rate-limiter) [🔗](https://leetcode.com/problems/logger-rate-limiter) |
686687
| 811 | 子域名访问计数 | | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/subdomain-visit-count) [🔗](https://leetcode.com/problems/subdomain-visit-count) |
688+

0 commit comments

Comments
 (0)