InterviewBit Problems   Longest Consecutive Sequence : Solved


About the Longest Consecutive Sequence : Solved category (1)
Easy O(n) Solution - unordered_set (1)
Real O(n) solution (1)
C++ O(n) time O(n) space using Hash_Set optimised for consecutive elements (1)
C++ solution 6 lines (4)
Simple O(n) solution in python using dictionary (1)
Very simple O(n) soln using set [C++] (2)
Python O(N) time O(N) space solution without nested loops (2)
Best java solution O(n) time (1)
C++ Solution accepted by using set (1)
O(n) solution using simple HashSet (1)
Very elegant solution (1)
Simplest O(n) C++ solution (2)
O(N) solution using two maps (1)
O(n) time and O(n) space (1)
Java using a SortedSet (1)
Python in o(n) using dict (1)
IMHO the Editorial Solution is running in `O(N^2)`. Do you agree? (2)
Simple O(n) solution using unordered set (1)
[C++] Simple Solution O(n) (1)
Just Use Priority Queue in Java (1)
O(n) solution by sorting the list using a set (counting sort) (1)
Clean JAVA code with Comments (1)
Simplest C++ sol using Map in O(N) and neat clean code (1)
Easy C++ solution {O(n)} (1)
EZPZ... C++ Solution (1)
C++ hashing with unordered map (1)
C++ simple & short solution (2)
Python solution with set (1)
Java Solution using Collection.sort (3)