Longest Consecutive Sequence | LeetCode 128
AFFILIATE LINKS Great resource I use to learn algorithms.40% off Tech Interview Pro: http://techinterviewpro.com/terriblewhiteboard20% off CoderPro: http://coderpro.com/terriblewhiteboard In this problem, we add each number to a set in order to remove any duplicate values. Then, we loop over the set only. To be the most efficient, we should only check the length of the streak once for …