Problem 324 · Medium

Wiggle Sort II

Arrange array in wiggle pattern: nums[0] < nums[1] > nums[2].

Open the interactive visualisation