Problem 2674 · Medium

Split a Circular Linked List

Count the ring, walk to the middle, cut it after the first half and close each piece back on itself.

Open the interactive visualisation