摘要: https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/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->... 阅读全文
posted @ 2018-02-22 03:20 davidnyc 阅读(138) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/delete-node-in-a-linked-list/description/Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked... 阅读全文
posted @ 2018-02-22 00:16 davidnyc 阅读(116) 评论(0) 推荐(0)