
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Do a while loop to calculate the size of the linked list.
Determine the size of the first half and create a new linked list in its size.
Do not forget that this half itself should be circular!
Use the previous hints for the second half.