Problem 1172 · Hard

Dinner Plate Stacks

Push onto the lowest stack with room, found through a min heap of non-full stack indices, and pop from the rightmost stack.

Open the interactive visualisation