Problem 2460 · Easy
Double each adjacent equal pair in turn, zero the partner, then shift the nonzero values to the front.
Open the interactive visualisation