Problem 1033 · Medium

Moving Stones Until Consecutive

Sort the three stones; the minimum follows from the two gaps, and the maximum is the total number of empty spots between them.

Open the interactive visualisation