码迷,mamicode.com
首页 >  
搜索关键字:linked_list    ( 3784个结果
1.把二元查找树转变成排序的双向链表
Binary search tree to sorted double linked list.
分类:其他好文   时间:2014-05-22 05:30:47    阅读次数:207
【Leetcode】Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他好文   时间:2014-05-22 03:53:29    阅读次数:313
9.链表中倒数第k个结点
Find the inverse Kth node of a linked list.
分类:其他好文   时间:2014-05-22 03:29:46    阅读次数:247
19.反转链表
Reverse a linked list.
分类:其他好文   时间:2014-05-22 02:15:57    阅读次数:219
35.两链表的第一个公共结点
Find common nodes of 2 linked list.
分类:其他好文   时间:2014-05-22 00:10:17    阅读次数:241
31.从尾到头输出链表
Print a linked list from last to first.
分类:其他好文   时间:2014-05-22 00:06:27    阅读次数:258
33.在O(1)时间删除链表结点
Delete node in linked list in O(1).
分类:其他好文   时间:2014-05-22 00:05:51    阅读次数:190
【Leetcode】Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-05-21 19:08:08    阅读次数:195
【Leetcode】Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-05-21 17:51:09    阅读次数:190
Leetcode:Reverse Linked List II 单链表区间范围内逆置
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m, n satisfy the fol...
分类:其他好文   时间:2014-05-21 07:18:02    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!