目录

力扣708. 循环有序列表的插入

力扣708. Insert into a Sorted Circular Linked List(循环有序列表的插入)

向循环有序链表中插入节点。会员题。

示例 1:

../posts/01_学习/87_LeetCode/0708_循环有序列表的插入/img/0708-1-description.png

输入:head = [3,4,1], insertVal = 2
输出:[3,4,1,2]
解释:...

提示:

  • 链表中节点数目为 [0, 5 * 10^4]
  • -10^6 <= Node.val, insertVal <= 10^6