2835. Split a Circular Linked List

Medium
Linked List
Two Pointers

Description

Hints

Hint 1
Do a while loop to calculate the size of the linked list.
Hint 2
Determine the size of the first half and create a new linked list in its size.
Hint 3
Do not forget that this half itself should be circular!
Hint 4
Use the previous hints for the second half.

Statistics

Acceptance
77.5%
Submissions
4,034
Accepted
3,128