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

Sign up
Appearance settings

Commit 8420e46

Browse files
committed
fix: readme
1 parent d51afc4 commit 8420e46

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎solution/2200-2299/2264.Largest 3-Same-Digit Number in String/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
若枚举完所有的 $i$ 都没有找到满足条件的字符串,则返回空字符串。
7070

71-
时间复杂度 $O(10)
71+
时间复杂度 $O(10 \times n),ドル其中 $n$ 是字符串 $num$ 的长度。空间复杂度 $O(1)$。
7272

7373
<!-- tabs:start -->
7474

‎solution/2200-2299/2264.Largest 3-Same-Digit Number in String/README_EN.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656

5757
## Solutions
5858

59+
**Solution 1: Enumeration**
60+
61+
We can enumerate each digit $i$ from large to small, where 0ドル \le i \le 9,ドル and then check whether the string $s$ consisting of three consecutive $i$ is a substring of $num$. If it is, we directly return $s$.
62+
63+
If we have enumerated all the possible values of $i$ and still haven't found a substring that satisfies the condition, we return an empty string.
64+
65+
The time complexity is $O(10 \times n),ドル where $n$ is the length of the string $num$. The space complexity is $O(1)$.
66+
5967
<!-- tabs:start -->
6068

6169
### **Python3**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /