摘要: 148. 排序链表 快速排序 用快速排序时,将中间节点当作pivot比结尾节点快,下图分别为中间节点和尾节点的运行结果。 class Solution { public ListNode sortList(ListNode head) { if (head == null || head.next 阅读全文
posted @ 2022-03-18 12:48 wuzu 阅读(25) 评论(0) 推荐(0) 编辑