We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0207267 commit ec59921Copy full SHA for ec59921
src/main/java/com/fishercoder/solutions/_556.java
@@ -1,19 +1,6 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 556. Next Greater Element III
5
- *
6
- * Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing
7
- * in the integer n and is greater in value than n. If no such positive 32-bit integer exists, you need to return -1.
8
9
- * Example 1:
10
- * Input: 12
11
- * Output: 21
12
13
- * Example 2:
14
- * Input: 21
15
- * Output: -1
16
- */
+
17
public class _556 {
18
public static class Solution1 {
19
/**
0 commit comments