随笔分类 -  Longest or Consecutive or minmum

find length of longest consecutive subsequence S in an unsorted array where min * 2 > max.
摘要:这种题 普遍思路是 两个指针 一个头一个尾. Min max len 阅读全文

posted @ 2014-12-12 08:21 brave_bo 阅读(135) 评论(0) 推荐(0)

未排序寻找连续 leetcode -- Longest Consecutive Sequence
摘要: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 longest... 阅读全文

posted @ 2013-08-16 07:05 brave_bo 阅读(255) 评论(0) 推荐(0)

导航