Remove Nth Node From End of List
摘要:
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 removing the second node from the end, the linked list becomes 1->2->3->5.Note:Givennwill always be valid.Try to do this in one pass.各种 阅读全文
posted @ 2014-02-27 21:32 pengyu2003 阅读(130) 评论(0) 推荐(0) 编辑