Skip to content

Commit eb80366

Browse files
refactor 31
1 parent af9df66 commit eb80366

File tree

1 file changed

+0
-15
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-15
lines changed

src/main/java/com/fishercoder/solutions/_31.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 31. Next Permutation
5-
6-
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
7-
8-
If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).
9-
10-
The replacement must be in-place, do not allocate extra memory.
11-
12-
Here are some examples. Inputs are in the left-hand column and its corresponding outputs are in the right-hand column.
13-
1,2,3 → 1,3,2
14-
3,2,1 → 1,2,3
15-
1,1,5 → 1,5,1
16-
*/
17-
183
public class _31 {
194
public static class Solution1 {
205
/**

0 commit comments

Comments
 (0)