My notes on leetcode
Thursday, October 16, 2014
Code Ganker: Longest Consecutive Sequence -- LeetCode
Code Ganker: Longest Consecutive Sequence -- LeetCode
: 原题链接: http://oj.leetcode.com/problems/longest-consecutive-sequence/ 这道题是要求出最长的整数连续串。我们先说说简单直接的思路,就是先排序,然后做一次扫描,记录当前连续串长度,如果连续串中断,则比较是否为当前最...
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment