2018年4月4日

147.Insertion Sort List---链表排序(直接插入)

摘要: 题目链接 题目大意:对链表进行插入排序。 解法:直接插入排序。代码如下(耗时40ms): 1 public ListNode insertionSortList(ListNode head) { 2 ListNode first = new ListNode(0); 3 ListNode pre = 阅读全文

posted @ 2018-04-04 09:23 二十年后20 阅读(169) 评论(0) 推荐(0)

导航