Longest Consecutive Sequence | Leetcode | Medium | Java | O(n)

preview_player
Показать описание
This is a medium level problem which can be solved even by sorting ( time complexity: O(nlog(n)) ) but this video explains an algorithm to solve this problem in a better time complexity i.e. O(n) by making use of Set data structure.

Рекомендации по теме
Комментарии
Автор

Hello ma'am, do you have any official email adress to reachout to you for something serious/business related things?

तंत्र