0280. Wiggle Sort
Description
**Input:** nums = [3,5,2,1,6,4]
**Output:** [3,5,1,6,2,4]
**Explanation:** [1,6,2,5,3,4] is also accepted.**Input:** nums = [6,6,5,6,3,8]
**Output:** [6,6,5,6,3,8]ac1: in-place odd/even check
ac2: quickselect partition
Last updated