2018年3月8日

LeetCode 148 Sort List 链表上的归并排序和快速排序

摘要: Sort a linked list in O(n log n) time using constant space complexity. 单链表排序 快排 & 归并排序 (1)归并排序 (2)快速排序 ①.使第一个节点为中心点;②.创建2个指针(first,second),first指向头结点, 阅读全文

posted @ 2018-03-08 19:06 lina2014 阅读(168) 评论(0) 推荐(0) 编辑

导航