Problem 2672 · Medium
Track the count of equal adjacent pairs; each query only affects its two neighbors.
Open the interactive visualisation