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 d0775e1 commit a8281d4Copy full SHA for a8281d4
solutions/java/NextHighestNumber.java
@@ -1,5 +1,10 @@
1
public class NextHighestNumber {
2
-
+ /***
3
+ * Convert int into character array. Starting from the end, compare each
4
+ * number with all numbers before it, one at a time. At any moment we find a
5
+ * number greater than any of its previous numbers, we swap them, and return
6
+ * the converted int.
7
+ */
8
public static void main(String[] args) {
9
// TODO Auto-generated method stub
10
NextHighestNumber nhn = new NextHighestNumber();
0 commit comments