摘要: 描述 Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, y 阅读全文
posted @ 2017-04-23 16:04 larryking 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 描述 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in t 阅读全文
posted @ 2017-04-23 15:59 larryking 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 描述 Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1 1 2, return 1 2. Given 1 1 2 3 3, r 阅读全文
posted @ 2017-04-23 15:58 larryking 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 描述 Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The l 阅读全文
posted @ 2017-04-23 15:57 larryking 阅读(161) 评论(0) 推荐(0) 编辑