We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12b2b89 commit cc3ee31Copy full SHA for cc3ee31
src/main/java/com/fishercoder/solutions/_738.java
@@ -1,25 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 738. Monotone Increasing Digits
5
- *
6
- * Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits.
7
- * (Recall that an integer has monotone increasing digits if and only if each pair of adjacent digits x and y satisfy x <= y.)
8
-
9
- Example 1:
10
- Input: N = 10
11
- Output: 9
12
13
- Example 2:
14
- Input: N = 1234
15
- Output: 1234
16
17
- Example 3:
18
- Input: N = 332
19
- Output: 299
20
21
- Note: N is an integer in the range [0, 10^9].
22
- */
23
public class _738 {
24
public static class Solution1 {
25
/**
0 commit comments