摘要: 题目描述:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn'... 阅读全文
posted @ 2015-05-15 20:38 scottwang 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 题目描述: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 @ 2015-05-15 20:29 scottwang 阅读(149) 评论(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 @ 2015-05-15 20:04 scottwang 阅读(170) 评论(0) 推荐(0) 编辑