摘要:
Palindrome Linked List:Given a singly linked list, determine if it is a palindrome. 题意:判断给定的一个链表中数,是否为回文。 思路:参考http://www.bkjia.com/ASPjc/1031678.html中的解法,采用递归的方式进行判断。 代码: private ListNode lst; ... 阅读全文
posted @ 2016-01-14 19:39
Lewisr
阅读(127)
评论(0)
推荐(0)
摘要:
Intersection of Two Linked Lists:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the followi... 阅读全文
posted @ 2016-01-14 19:26
Lewisr
阅读(141)
评论(0)
推荐(0)
摘要:
Remove Linked List Elements: Remove all elements from a linked list of integers that have value val. Example: Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 –> 5 题意:... 阅读全文
posted @ 2016-01-14 19:16
Lewisr
阅读(111)
评论(0)
推荐(0)

浙公网安备 33010602011771号