链表
柯森锎
92年的小学生
展开
-
PAT甲级练习题A1097. Deduplication on a Linked List (25)
题目描述Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value o原创 2016-09-07 20:38:23 · 269 阅读 · 0 评论 -
LeetCode 2. Add Two Numbers
题目描述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 digit. Add the two numbers and return it as a l原创 2016-09-20 21:46:31 · 341 阅读 · 0 评论 -
LeetCode 19. Remove Nth Node From End of List
题目描述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 removing the second node from the end, the linked原创 2016-11-24 22:14:44 · 449 阅读 · 0 评论