Longest Consecutive Sequence - Leetcode 128

Опубликовано: 17 Декабрь 2023
на канале: Algorial
400
13

Today we will solve the "Longest Consecutive Sequence" problem from Leetcode. We will explore the brute force and then sorting solutions but will end up using Sets to solve this Problem.

Give this problem a try here: https://leetcode.com/problems/longest...

Don't miss Arrays playlist here:    • Queue  

Don't miss Strings playlist here:    • Strings  

This question has been asked by Google, Meta, Amazon, Apple, Microsoft, and many other companies.

Please check the channel page for more leetcode solution videos. Also don't forget to like, comment, and subscribe.
Hope you enjoy the video and Thanks for watching 🙏

Chapters:
0:00 Intro and question
0:06 Examples
0:27 Broute-force solution
0:32 Sorting?
0:53 The Idea
2:27 Code Walkthrough
4:09 Time and Space Complexity


На этой странице сайта вы можете посмотреть видео онлайн Longest Consecutive Sequence - Leetcode 128 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Algorial 17 Декабрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 400 раз и оно понравилось 13 зрителям. Приятного просмотра!