Package s0031_next_permutation
Class Solution
java.lang.Object
s0031_next_permutation.Solution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidnextPermutation(int[] nums) voidreverse(int[] nums, int i, int j) voidswap(int[] nums, int i, int j)
-
Constructor Details
-
Solution
public Solution()
-
-
Method Details
-
nextPermutation
public void nextPermutation(int[] nums) -
swap
public void swap(int[] nums, int i, int j) -
reverse
public void reverse(int[] nums, int i, int j)
-