摘要:
题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your al... 阅读全文
posted @ 2015-08-26 11:41
Hygeia
阅读(111)
评论(0)
推荐(0)
摘要:
题目:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: ... 阅读全文
posted @ 2015-08-26 10:23
Hygeia
阅读(165)
评论(0)
推荐(0)
摘要:
题目:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 ... 阅读全文
posted @ 2015-08-26 09:54
Hygeia
阅读(88)
评论(0)
推荐(0)
摘要:
题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2-... 阅读全文
posted @ 2015-08-26 09:44
Hygeia
阅读(161)
评论(0)
推荐(0)
摘要:
题目:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, r... 阅读全文
posted @ 2015-08-26 01:13
Hygeia
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号