In this video, we will solve problem #128 of leetcode. I will show you the best approach to solve this problem in O(N) time complexity.
You can watch the whole leetcode series in the playlist: https://www.youtube.com/playlist?list=PLyTI7CpFS6wVIc-wBUdvj92V2holCXPUI
Content of Video:
0:00 - Intro
0:07 - Problem Explanation
1:37 - Solution for O(NlogN)
3:52 - Time Complexity for O(NlogN)
4:24 - Solution for O(N)
7:14 - Code for O(N)
11:58 - Time Complexity for O(N)
#leetcode #datastructures #algorithm #problemsolving #coding #competitiveprogramming
Download
0 formats
No download links available.
#128 Longest Consecutive Sequence | LeetCode Problem Solving | DS | Algorithm | Hindi | NatokHD