摘要:
题目链接Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. Afte... 阅读全文
posted @ 2014-04-15 22:28
tenos
阅读(929)
评论(0)
推荐(0)
摘要:
这篇文章分析一下链表的各种排序方法。以下排序算法的正确性都可以在LeetCode的链表排序这一题检测。本文用到的链表结构如下(排序算法都是传入链表头指针作为参数,返回排序后的头指针)struct ListNode { int val; ListNode *next; ListNode(int x) ... 阅读全文
posted @ 2014-04-15 16:34
tenos
阅读(93650)
评论(5)
推荐(9)

浙公网安备 33010602011771号