LeetCode

Decrease Elements To Make Array Zigzag

Click here for an explanation.