Skip to content

Commit 2f5c78e

Browse files
longsizhuogithub-actions[bot]
authored andcommitted
chore(docs): sync doc metadata [skip ci]
1 parent 073e4f9 commit 2f5c78e

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

app/docs/CommunityShare/Leetcode/1653. 使字符串平衡的最少删除次数_translated.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: 1653. The minimum number of times to balance the string balance.md
3-
date: '2024.01.01 0:00'
3+
date: "2024.01.01 0:00"
44
tags:
55
- - Python
66
- - answer
77
abbrlink: cac21f27
8+
docId: bsf0yz1zrmlz7masrdmq8fq6
89
---
910

1011
# topic:
@@ -13,7 +14,7 @@ abbrlink: cac21f27
1314

1415
# Thought:
1516

16-
ask:Why if-else Write (c - 'a') * 2 - 1 It will be much faster?
17+
ask:Why if-else Write (c - 'a') \* 2 - 1 It will be much faster?
1718

1819
answer:CPU I encounter a branch(Condition jump instruction)Which branch of the code will be predicted when the code is executed,If the prediction is correct,
1920
CPU It will continue to execute the program in accordance with the predicted path。But if the prediction fails,CPU You need to roll back the previous instructions and load the correct instructions,To ensure the correctness of the program execution。
@@ -23,7 +24,6 @@ For the data of this question,character ‘a’ and ‘b’ It can be consider
2324

2425
Notice:This optimization method often reduces readability,It's best not to use in business code。
2526

26-
2727
# Code:
2828

2929
```python
@@ -36,4 +36,4 @@ class Solution:
3636
ans = delete
3737
return ans
3838

39-
```
39+
```

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-11T03:04:30.448Z",
3+
"generatedAt": "2025-11-12T03:05:31.078Z",
44
"docsDir": "app/docs",
5-
"totalDocs": 109,
5+
"totalDocs": 110,
66
"results": [
77
{
88
"docId": "ue27z7z95yzw3lhhfj7nit1c",
@@ -2034,6 +2034,23 @@
20342034
}
20352035
]
20362036
},
2037+
{
2038+
"docId": "bsf0yz1zrmlz7masrdmq8fq6",
2039+
"path": "app/docs/CommunityShare/Leetcode/1653. 使字符串平衡的最少删除次数_translated.md",
2040+
"contributorStats": {
2041+
"114939201": 1
2042+
},
2043+
"contributors": [
2044+
{
2045+
"githubId": "114939201",
2046+
"contributions": 1,
2047+
"lastContributedAt": "2025-11-12T03:00:17.000Z",
2048+
"login": "longsizhuo",
2049+
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
2050+
"htmlUrl": "https://github.com/longsizhuo"
2051+
}
2052+
]
2053+
},
20372054
{
20382055
"docId": "clx9mmqqvxipdfamqciuo146",
20392056
"path": "app/docs/CommunityShare/Leetcode/2679.矩阵中的和_translated.md",
@@ -2055,13 +2072,13 @@
20552072
"docId": "ryp6s59uwc10w2dywgs6f66h",
20562073
"path": "app/docs/CommunityShare/Leetcode/80_translated.md",
20572074
"contributorStats": {
2058-
"114939201": 1
2075+
"114939201": 2
20592076
},
20602077
"contributors": [
20612078
{
20622079
"githubId": "114939201",
2063-
"contributions": 1,
2064-
"lastContributedAt": "2025-11-11T03:00:03.000Z",
2080+
"contributions": 2,
2081+
"lastContributedAt": "2025-11-11T03:04:31.000Z",
20652082
"login": "longsizhuo",
20662083
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
20672084
"htmlUrl": "https://github.com/longsizhuo"

0 commit comments

Comments
 (0)