摘要: 题目: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 –> 4 –>... 阅读全文
posted @ 2015-08-24 13:58 Hygeia 阅读(136) 评论(0) 推荐(0)
摘要: 题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After... 阅读全文
posted @ 2015-08-24 06:51 Hygeia 阅读(143) 评论(0) 推荐(0)