InterviewBit Problems   Maximum Consecutive Gap : Solved


About the Maximum Consecutive Gap : Solved category (1)
[C++] Simple Solution using priority queue (3)
Check solution for custom input (1)
Using radixSort in place of standard sort (1)
If you see : Set, Priority Queue, Sort; that soln is not Correct. Here is one with Pigeonhole principal (1)
Simple and easy solution using java (1)
Easiest and fastest approach C++ (1)
Simple answer here (1)
Simple solution using priority queue (1)
C++ code using STL, short , simple and fast (2)
Solution is correct but memory limit exceeded. Why so? (1)
Simple Solution in JS using Objects (1)
O(n) solution in space and time using C++ (1)
Solution with O(n) space and time C++ (1)
Python O(N) solution. very easy (2)
As we can't sort Const of vector is given therefore making a cpoy (1)
Simple,Short,Optimal and Easy (1)
Why does this correct O(n) code give a TLE? Partially accepted solution (1)
Why does this correct O(n) code give TLE ? Same code gets accepted on LeetCode (1)
Memory Limit Exceeded - Maximum Consecutive Gap (1)
C++ O(n) by using heap (6)
Easy C++ solution with O(n) complexity (2)
Python solution easy (1)
Solution in O(n) (3)
Time O(N log N ) & Memory O(1) Solution in JAVA (1)
Formula for gap (1)
PigenholeSort in Editorial (3)
Easy to understand python solution-- (1)
Linear Space Linear Time C++ neatest code (1)
Counting sort gives Memory limit exceeded (1)