InterviewBit Problems
Longest Consecutive Sequence : Solved
About the Longest Consecutive Sequence : Solved category
(1)
Simplest O(n) C++ solution
(2)
Python O(N) time O(N) space solution without nested loops
(1)
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++ solution 6 lines
(3)
C++ hashing with unordered map
(1)
C++ simple & short solution
(2)
Python solution with set
(1)
Java Solution using Collection.sort
(3)
Java O(N) with HashSet, 4 pass
(1)
[Java] HashSet Solution
(1)
Using python hash table , O(N) SPACE AND O(N) TIME
(1)
Using set C++ easy solution
(1)
Weak test cases O(max(A[i])) solution gets accepted
(1)
Super simple and elegant O(n) python solution (with comments)
(1)
Ruby O(n) Time O(n) space
(1)
A O(n) java Solution the should not pass
(2)
Using set in python
(1)
next page →