[LeetCode] 280. Wiggle Sort 摆动排序

Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... Example: Input: nums = [3,5,2,1,6,4] Output:
posted @ 2016-02-02 13:22  Grandyang  阅读(21993)  评论(0)    收藏  举报
Fork me on GitHub