摘要: 题目: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After 阅读全文
posted @ 2016-02-10 19:02 zhangbaochong 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 题目: Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 阅读全文
posted @ 2016-02-10 18:00 zhangbaochong 阅读(221) 评论(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: a1 → 阅读全文
posted @ 2016-02-10 17:37 zhangbaochong 阅读(420) 评论(0) 推荐(0) 编辑