摘要: Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4... 阅读全文
posted @ 2014-05-02 16:39 陆草纯 阅读(1845) 评论(0) 推荐(0)
摘要: Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or... 阅读全文
posted @ 2014-05-02 10:32 陆草纯 阅读(6853) 评论(1) 推荐(0)