[LeetCode] Insert into a Sorted Circular Linked List

1 · · Feb. 13, 2021, 6:43 a.m.
708. Insert into a Sorted Circular Linked List Given a node from a Circular Linked List which is sorted in ascending order, write a function to insert a value insertVal into the list such that it remains a sorted circular list. The given node can be a reference to any single node in the list, and may not be necessarily the smallest value in the circular list. If there are multiple suitable places for insertion, you may choose any place to insert the new value. After the insertion, the circular ...