Decrease Elements To Make Array Zigzag
Decide which positions to lower by one so that the array alternates between smaller and larger neighbours, counting the fewest decrements for each pattern. The visual compares both alternating patterns side by side with the cost at each position.