摘要: Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes (i 阅读全文
posted @ 2015-04-20 15:20 Grandyang 阅读(19927) 评论(11) 推荐(1)
摘要: Given the head of a linked list, reverse the nodes of the list k at a time, and return the modified list. k is a positive integer and is less than or 阅读全文
posted @ 2015-04-20 13:24 Grandyang 阅读(26053) 评论(10) 推荐(0)
Fork me on GitHub