Skip to content

Commit ab866bc

Browse files
longsizhuogithub-actions[bot]
authored andcommitted
chore(docs): sync doc metadata [skip ci]
1 parent 8126a4e commit ab866bc

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

app/docs/CommunityShare/Leetcode/2309兼具大小写的最好英文字母_translated.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: 2309. The best English letters with both appropriates and lowercases One question daily
3-
date: '2024.01.01 0:00'
2+
title: >-
3+
2309. The best English letters with both appropriates and lowercases One
4+
question daily
5+
date: "2024.01.01 0:00"
46
tags:
57
- - Python
68
- - answer
@@ -9,6 +11,7 @@ tags:
911
- - Hash table
1012
- - C++
1113
abbrlink: b4953d62
14+
docId: mc2rjsq7syibclikyhomsbft
1215
---
1316

1417
[2309. The best English letters with both appropriates and lowercases](https://leetcode.cn/problems/greatest-english-letter-in-upper-and-lower-case/description/)
@@ -17,18 +20,17 @@ abbrlink: b4953d62
1720

1821
1. Hash table:The first thing to think of the question is to solve it with a dictionary。But find that you can directly traverse the alphabet,fromZStart looking for,See if the applause exists,Just return directly。
1922

20-
*Running time exceeds99.9%*
21-
2. Bit operation:We can use two integers mask1 and mask2 Record string separately s 中出现的小写字母and大写字母,in mask1 First i
23+
_Running time exceeds99.9%_ 2. Bit operation:We can use two integers mask1 and mask2 Record string separately s 中出现的小写字母and大写字母,in mask1 First i
2224
Position representation i Does a lowercase letter appear,and mask2 First i Position representation i Whether an uppercase letter appears。
2325

2426
Then we will mask1 and mask2 Perform and calculate,The results obtained mask First i Position representation i Whether the lethals of the letter appear at the same time。
2527

2628
As long as you get mask The highest level of binary representation 1 s position,Convert it to the corresponding capital letter。If all binary positions are not 1,Explain that there is no letter that appears at the same time,,Return to an empty string。
2729

28-
>author:ylb
29-
Link:https://leetcode.cn/problems/greatest-english-letter-in-upper-and-lower-case/solutions/2077636/by-lcbin-zbg0/
30-
source:Deduction(LeetCode)
31-
著作权归author所有。商业转载请联系author获得授权,Non -commercial reprint Please indicate the source。
30+
> author:ylb
31+
> Link:https://leetcode.cn/problems/greatest-english-letter-in-upper-and-lower-case/solutions/2077636/by-lcbin-zbg0/
32+
> source:Deduction(LeetCode)
33+
> 著作权归author所有。商业转载请联系author获得授权,Non -commercial reprint Please indicate the source。
3234
3335
# Code:
3436

@@ -40,7 +42,8 @@ class Solution:
4042
return chr(i)
4143
return ""
4244
```
43-
```C++ Hash table
45+
46+
```C++ Hash table
4447
class Solution {
4548
public:
4649
string greatestLetter(string s) {
@@ -54,7 +57,8 @@ public:
5457
}
5558
};
5659
```
57-
```python Bit operation
60+
61+
```python Bit operation
5862
class Solution:
5963
def greatestLetter(self, s: str) -> str:
6064
# We can use two integers mask1 and mask2
@@ -69,4 +73,3 @@ class Solution:
6973
mask = mask1 & mask2
7074
return chr(mask.bit_length() - 1 + ord("A")) if mask else ""
7175
```
72-

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-27T03:05:27.753Z",
3+
"generatedAt": "2025-11-28T03:06:17.491Z",
44
"docsDir": "app/docs",
5-
"totalDocs": 125,
5+
"totalDocs": 126,
66
"results": [
77
{
88
"docId": "ue27z7z95yzw3lhhfj7nit1c",
@@ -2204,6 +2204,23 @@
22042204
}
22052205
]
22062206
},
2207+
{
2208+
"docId": "mc2rjsq7syibclikyhomsbft",
2209+
"path": "app/docs/CommunityShare/Leetcode/2309兼具大小写的最好英文字母_translated.md",
2210+
"contributorStats": {
2211+
"114939201": 1
2212+
},
2213+
"contributors": [
2214+
{
2215+
"githubId": "114939201",
2216+
"contributions": 1,
2217+
"lastContributedAt": "2025-11-28T03:00:11.000Z",
2218+
"login": "longsizhuo",
2219+
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
2220+
"htmlUrl": "https://github.com/longsizhuo"
2221+
}
2222+
]
2223+
},
22072224
{
22082225
"docId": "clx9mmqqvxipdfamqciuo146",
22092226
"path": "app/docs/CommunityShare/Leetcode/2679.矩阵中的和_translated.md",
@@ -2276,13 +2293,13 @@
22762293
"docId": "s0cadbu09dgu54q0zxttkx7z",
22772294
"path": "app/docs/CommunityShare/Leetcode/9021_TUT_3_25T1.md",
22782295
"contributorStats": {
2279-
"114939201": 1
2296+
"114939201": 2
22802297
},
22812298
"contributors": [
22822299
{
22832300
"githubId": "114939201",
2284-
"contributions": 1,
2285-
"lastContributedAt": "2025-11-27T03:00:16.000Z",
2301+
"contributions": 2,
2302+
"lastContributedAt": "2025-11-27T03:05:29.000Z",
22862303
"login": "longsizhuo",
22872304
"avatarUrl": "https://avatars.githubusercontent.com/u/114939201?v=4",
22882305
"htmlUrl": "https://github.com/longsizhuo"

0 commit comments

Comments
 (0)