会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wwwwu
博客园
首页
新随笔
联系
订阅
管理
2022年3月18日
【LeetCode 148. 排序链表】归并排序和快速排序
摘要: 148. 排序链表 快速排序 用快速排序时,将中间节点当作pivot比结尾节点快,下图分别为中间节点和尾节点的运行结果。 class Solution { public ListNode sortList(ListNode head) { if (head == null || head.next
阅读全文
posted @ 2022-03-18 12:48 wuzu
阅读(25)
评论(0)
推荐(0)
编辑
公告