Wiggle Sort II
Question:
http://www.lintcode.com/en/problem/wiggle-sort-ii/
Given an unsorted array nums, reorder it such that
nums[0] < nums[1] > nums[2] < nums[3]....
Answer:
class Solution {
public:
/*
* @param nums: A list of integers
* @return: nothing
*/
inline int partion(vector &nums, int left, int right) {
int pivot = nums[left]