Search⌘ K
AI Features

Split a Circular Linked List

Split a Circular Linked List into two circular linked lists, preserving node order and putting the extra node in the first half when the length is odd. Return both head nodes.

Statement

Given a circular linked list, list, of positive integers, split it into two circular linked lists. The first ...