Problem 1652 · Easy

Defuse the Bomb

Replace each position in a circular array with the sum of a window of neighbours, forward, backward or zero depending on a signed shift. The visual slides a highlighted window across the ring.

Open the interactive visualisation