2017年10月31日

分类解决问题的思想

摘要: 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. Your a 阅读全文

posted @ 2017-10-31 22:59 flyingwaters 阅读(151) 评论(0) 推荐(0) 编辑

Add to List 328. Odd Even Linked List

摘要: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文

posted @ 2017-10-31 13:25 flyingwaters 阅读(132) 评论(0) 推荐(0) 编辑

导航