Problem 950 · Medium

Reveal Cards In Increasing Order

Order a deck so that repeatedly revealing the top card and moving the next card to the bottom reveals the cards in increasing order. The visual runs the queue of positions as a simulation.

Open the interactive visualisation