Problem 3208 · Medium

Alternating Groups II

Walk around the circle once more than a lap, track the length of the alternating run ending at each tile, and count runs of at least k.

Open the interactive visualisation