This is the complete guide to solve Longest Consecutive Sequence question on LeetCode. We discuss 2 brute force approaches then we will give a detailed explanation/code the O(n) optimization!
Video Contents:
00:00 - Read and understand the question
02:38 - Brute Force 1 explained (sorting)
03:58 - Brute Force 2 explained - important!
07:09 - Optimization, O(n), explained
14:19 - Code/further explain the solution
22:37 - Time and Space complexity
Ещё видео!