Package leetcode.wiggle_sort_ii
Class Solution
- java.lang.Object
-
- leetcode.wiggle_sort_ii.Solution
-
public class Solution extends Object
324. ζε¨ζεΊ II
-
-
Constructor Summary
Constructors Constructor Description Solution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
findKthLargest(int[] nums, int k)
int
partitionAroundPivot(int left, int right, int pivot, int[] nums)
void
swap(int[] a, int i, int j)
int
transAddress(int i, int n)
void
wiggleSort(int[] nums)
-
-
-
Field Detail
-
random
Random random
-
-
Method Detail
-
wiggleSort
public void wiggleSort(int[] nums)
-
findKthLargest
public int findKthLargest(int[] nums, int k)
-
transAddress
public int transAddress(int i, int n)
-
swap
public void swap(int[] a, int i, int j)
-
partitionAroundPivot
public int partitionAroundPivot(int left, int right, int pivot, int[] nums)
-
-