Longest Consecutive Sequence | LeetCode 128 | Theory + Python code

preview_player
Показать описание
This video is a solution to LeetCode 128, Longest Consecutive Sequence. I explain the question, go over the logic / theory behind solving the question and then solve it using Python.

Comment below if you have a better solution to this problem!

Let me know if you have any feedback and don't forget to subscribe for more videos!

Time stamps:
0:00 Question explained
1:31 Solution explained
7:38 Python code explained
10:15 Optimization explained
13:06 Python code with optimization

More leetcode questions solved:
Рекомендации по теме
Комментарии
Автор

Bro Which software do u use for telling the solutions

starX
Автор

Bro you have used while loop inside of for loop wont it become order of n square but we wnat order of n right

starX
Автор

Bro add implementation in C++/Java too

nishanthnellutla