Problem 1535 · Medium

Find the Winner of an Array Game

Find the winner of repeated front-of-array duels by tracking the current champion and its consecutive wins. The visual moves the champion through the queue as each duel is played.

Open the interactive visualisation