摘要: 数组 1.如果题目要求O(n)复杂度,一般就需要考虑使用two pointer 或者sliding window或者HashMap、 HashSet eg: https://leetcode.com/problems/longest-consecutive-sequence/description/ 阅读全文
posted @ 2017-11-28 15:39 shawshawwan 阅读(455) 评论(0) 推荐(0) 编辑