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 3bbabf4

Browse files
更新 0738.单调递增的数字 排版格式修复
1 parent bde75d3 commit 3bbabf4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

‎problems/0738.单调递增的数字.md‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@
2626

2727
说明: N 是在 [0, 10^9] 范围内的一个整数。
2828

29-
#视频讲解
29+
## 算法公开课
3030

31-
**《代码随想录》算法视频公开课:[贪心算法,思路不难想,但代码不好写!LeetCode:738.单调自增的数字](https://www.bilibili.com/video/BV1Kv4y1x7tP),相信结合视频在看本篇题解,更有助于大家对本题的理解**
31+
**[《代码随想录》算法视频公开课](https://programmercarl.com/other/gongkaike.html):[贪心算法,思路不难想,但代码不好写!LeetCode:738.单调自增的数字](https://www.bilibili.com/video/BV1Kv4y1x7tP),相信结合视频在看本篇题解,更有助于大家对本题的理解**
3232

33+
## 思路
3334

34-
## 暴力解法
35+
36+
### 暴力解法
3537

3638
题意很简单,那么首先想的就是暴力解法了,来我替大家暴力一波,结果自然是超时!
3739

@@ -62,7 +64,7 @@ public:
6264
* 时间复杂度:O(n ×ばつ m) m为n的数字长度
6365
* 空间复杂度:O(1)
6466
65-
## 贪心算法
67+
### 贪心算法
6668
6769
题目要求小于等于N的最大单调递增的整数,那么拿一个两位的数字来举例。
6870
@@ -120,7 +122,7 @@ public:
120122
## 其他语言版本
121123

122124

123-
### Java:
125+
### Java
124126
```java
125127
版本1
126128
class Solution {
@@ -163,7 +165,7 @@ class Solution {
163165
```
164166

165167

166-
### Python:
168+
### Python
167169
暴力
168170
```python
169171
class Solution:
@@ -395,3 +397,4 @@ impl Solution {
395397
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
396398
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
397399
</a>
400+

0 commit comments

Comments
(0)

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