摘要: 问题: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spac 阅读全文
posted @ 2016-12-14 15:12 Gerrard_Feng 阅读(356) 评论(0) 推荐(0)
摘要: 问题: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k th 阅读全文
posted @ 2016-12-14 14:45 Gerrard_Feng 阅读(299) 评论(0) 推荐(0)
摘要: 问题: 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 @ 2016-12-14 11:32 Gerrard_Feng 阅读(348) 评论(0) 推荐(0)