':type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.'

def wiggleSort(self, nums):

    for i in xrange(1, len(nums)):
        if (((i % 2) and (nums[(i - 1)] > nums[i])) or ((not (i % 2)) and (nums[(i - 1)] < nums[i]))):
            (nums[(i - 1)], nums[i]) = (nums[i], nums[(i - 1)])
