Package s0031_next_permutation
Class Solution
java.lang.Object
s0031_next_permutation.Solution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
nextPermutation
(int[] nums) void
reverse
(int[] nums, int i, int j) void
swap
(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)
-