摘要: 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: a... 阅读全文
posted @ 2015-06-16 14:41 朱传林 阅读(161) 评论(0) 推荐(0)
摘要: Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --... 阅读全文
posted @ 2015-06-16 14:40 朱传林 阅读(123) 评论(0) 推荐(0)
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *... 阅读全文
posted @ 2015-06-16 14:38 朱传林 阅读(130) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-06-16 10:26 朱传林 阅读(167) 评论(0) 推荐(0)