摘要: 描述: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Y 阅读全文
posted @ 2017-12-15 10:09 飘舞的雪 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 描述: 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 阅读全文
posted @ 2017-12-15 09:40 飘舞的雪 阅读(147) 评论(0) 推荐(0) 编辑