摘要: Merge Two Sorted ListsTotal Accepted:4404Total Submissions:13615My SubmissionsMerge two sorted linked lists and return it as a new list. The new list ... 阅读全文
posted @ 2013-12-13 11:25 海滨银枪小霸王 阅读(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 re... 阅读全文
posted @ 2013-12-13 10:48 海滨银枪小霸王 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat... 阅读全文
posted @ 2013-12-13 07:11 海滨银枪小霸王 阅读(124) 评论(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, retu... 阅读全文
posted @ 2013-12-13 06:52 海滨银枪小霸王 阅读(117) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2013-12-13 06:40 海滨银枪小霸王 阅读(120) 评论(0) 推荐(0) 编辑