We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f335b05 commit 6f30d04Copy full SHA for 6f30d04
src/main/java/com/fishercoder/solutions/_556.java
@@ -1,13 +1,15 @@
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.
- * <p>
8
9
* Example 1:
10
* Input: 12
11
* Output: 21
12
13
* Example 2:
14
* Input: 21
15
* Output: -1
0 commit comments