摘要: Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 反转单链表,看到我 阅读全文
posted @ 2018-10-31 20:29 Pickle 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorithm should use only constant extra space. You may no 阅读全文
posted @ 2018-10-31 20:06 Pickle 阅读(233) 评论(0) 推荐(0) 编辑