Skip to content

Commit 7c5d609

Browse files
longsizhuogithub-actions[bot]
authored andcommitted
chore(docs): sync doc metadata [skip ci]
1 parent e02ca4f commit 7c5d609

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

app/docs/CommunityShare/Leetcode/Counting Stars-Inter-Uni Programming Contest.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tags:
66
- Python
77
- Binary Search
88
abbrlink: a29b0a05
9+
docId: fostlzqqx6l10qz1egd8dw5m
910
---
1011

1112
# Description:
@@ -20,13 +21,14 @@ https://interunia.unswcpmsoc.com/task/Counting%20Stars/
2021
- The positions of fixed stars remain unchanged.
2122

2223
Therefore, we need to maintain a list of the **last y-coordinate of the current chain**.
24+
2325
1. **Sort the points**: Sort them by increasing x coordinates.
2426
2. **Initialization**: Create an empty list `last_y` to store the last y-coordinate of each chain.
2527
3. **Traverse the set of points**:
26-
- For each point (x, y):
27-
- Use `bisect_right` to find the first position in `last_y` that is greater than the current y.
28-
- If the index is less than the length of `last_y`, it means there is an existing chain that can accommodate the current point, so we update the last y-coordinate of that chain to the current y.
29-
- If the index is equal to the length of `last_y`, it means no suitable chain is found, so we need to create a new chain and add the current y to `last_y`.
28+
- For each point (x, y):
29+
- Use `bisect_right` to find the first position in `last_y` that is greater than the current y.
30+
- If the index is less than the length of `last_y`, it means there is an existing chain that can accommodate the current point, so we update the last y-coordinate of that chain to the current y.
31+
- If the index is equal to the length of `last_y`, it means no suitable chain is found, so we need to create a new chain and add the current y to `last_y`.
3032

3133
# Code:
3234

@@ -53,4 +55,4 @@ for x, y in stars:
5355
last_y.append(y) # 创建新的链
5456

5557
print(len(last_y))
56-
```
58+
```

generated/doc-contributors.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"repo": "InvolutionHell/involutionhell",
3-
"generatedAt": "2025-11-14T03:05:54.670Z",
3+
"generatedAt": "2025-11-15T03:07:05.492Z",
44
"docsDir": "app/docs",
5-
"totalDocs": 112,
5+
"totalDocs": 113,
66
"results": [
77
{
88
"docId": "ue27z7z95yzw3lhhfj7nit1c",
@@ -2021,13 +2021,13 @@
20212021
"docId": "rv6egbynttb4mt1n0412bue0",
20222022
"path": "app/docs/CommunityShare/Leetcode/[213]打家劫舍 II_translated.md",
20232023
"contributorStats": {
2024-
"114939201": 1
2024+
"114939201": 2
20252025
},
20262026
"contributors": [
20272027
{
20282028
"githubId": "114939201",
2029-
"contributions": 1,
2030-
"lastContributedAt": "2025-11-14T03:00:17.000Z",
2029+
"contributions": 2,
2030+
"lastContributedAt": "2025-11-14T03:05:55.000Z",
20312031
"login": "longsizhuo",
20322032
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
20332033
"htmlUrl": "https://github.com/longsizhuo"
@@ -2119,6 +2119,23 @@
21192119
}
21202120
]
21212121
},
2122+
{
2123+
"docId": "fostlzqqx6l10qz1egd8dw5m",
2124+
"path": "app/docs/CommunityShare/Leetcode/Counting Stars-Inter-Uni Programming Contest.md",
2125+
"contributorStats": {
2126+
"114939201": 1
2127+
},
2128+
"contributors": [
2129+
{
2130+
"githubId": "114939201",
2131+
"contributions": 1,
2132+
"lastContributedAt": "2025-11-15T03:00:49.000Z",
2133+
"login": "longsizhuo",
2134+
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
2135+
"htmlUrl": "https://github.com/longsizhuo"
2136+
}
2137+
]
2138+
},
21222139
{
21232140
"docId": "qfvqmc1exp066falnsg97c5m",
21242141
"path": "app/docs/CommunityShare/Leetcode/剑指 Offer II 021. 删除链表的倒数第 n 个结点_translated.md",

0 commit comments

Comments
 (0)