码迷,mamicode.com
首页 >  
搜索关键字:linked    ( 5490个结果
CTCI 2.4
Write code to partition a linked list around a value x, such that all nodes less than x come before all nodes greater than or equal to x.Use two addit...
分类:其他好文   时间:2014-07-09 17:44:36    阅读次数:159
CTCI 2.5
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the Ts d...
分类:其他好文   时间:2014-07-09 15:35:19    阅读次数:176
CTCI 2.6
Given a circular linked list, implement an algorithm which returns the node at the beginning of the loop.DEFINITIONCircular linked list: A (corrupt) l...
分类:其他好文   时间:2014-07-09 15:24:22    阅读次数:203
Cracking the Coding Interview Q2.1
Write code to remove duplicates from an unsorted linked list.
分类:其他好文   时间:2014-07-08 22:18:56    阅读次数:219
Cracking the Coding Interview Q2.3
Implement an algorithm to delete a node in the middle of a single linked list, given only access to that node.
分类:其他好文   时间:2014-07-08 22:03:31    阅读次数:195
Cracking the Coding Interview Q2.2
Implement an algorithm to find the kth to last element of a singly linked list.
分类:其他好文   时间:2014-07-08 22:01:38    阅读次数:209
CTCI 2.3
Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node.EXAMPLEInput: the node c from the linked...
分类:其他好文   时间:2014-07-08 21:58:08    阅读次数:273
Cracking the Coding Interview Q2.6
Given a circular linked list, implement an algorithm which returns node at the beginning of the loop.DEFINITIONCircular linked list: A (corrupt) linke...
分类:其他好文   时间:2014-07-08 17:29:35    阅读次数:200
【LeetCode】Swap Nodes in Pairs
题目 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant spac...
分类:其他好文   时间:2014-07-08 13:46:26    阅读次数:205
Cracking the Coding Interview Q2.5
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1’s ...
分类:其他好文   时间:2014-07-08 13:34:40    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!