Problem 641 · Medium
A fixed ring where both ends can grow and shrink, moving the head backward or forward.
Open the interactive visualisation