

Let the circular linked list be 1, 2, 3, 4. We have to split this into two equal-sized circular linked lists.

The first line of input contains an integer ‘T’, denoting the number of test cases.
The first line of each test case contains an integer ‘N’, denoting the number nodes in the circular linked list.
The second line of each test case contains ‘N’ space-separated integers denoting the elements of the circular linked list.
For each test case, both the circular linked lists are printed in separate lines after splitting.
The output for each test case is printed in a separate line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 10
2 <= N <= 10000, N is even
-10 ^ 9 <= node data <= 10 ^ 9
Where ‘node data’ is the value of nodes of the list.
Time limit: 1 sec
The simple approach would be finding the middle point of the circular linked list and changing the pointers.
The simple approach would be finding the middle point of the circular linked list and changing the pointers. To do so in a single iteration, the concept of slow and fast pointer is used.