InterviewBit Problems   Max Distance : Solved


About the Max Distance : Solved category (1)
Simple cpp solution and accepted solution (2)
Simple Java solution, but time limit exceed, need proper solution! (1)
Hope this helps (1)
Most elegant and short python solution (1)
Working Code (Simple) (1)
Given Solution desont work For this test case (1)
Simple O(nlogn) solution (3)
O(n) with 2 Stacks in Java (1)
Java time ->o(n) and two auxiliary arrays o(n)) (5)
O(n) using one stack (1)
Simple and easy solution in O(n): (2)
2 approaches in C++ (1)
Simple C++ Solution using Left Minimum and Right Maximum Array (1)
Easy to understand, solved using vector pair in c++ (3)
O(n) solution C++ (4)
Can anybody tell , what is the problem with this divide and conquer(Binary search ) implementation . It is giving wrong ans to few test cases (1)
Simplest solution: O(n) time complexity with only ONE auxiliary array O(n) in Python (1)
Simplest way possible: O(n) time complexity and only ONE auxiliary array O(n) (1)
Simple to Follow Solution (1)
Max Distance Java Soln O(NLogN) (1)
Solved in O(nlogn). Getting OutOfMemoryError in JAVA (2)
Max Distance Easy Java Soln (1)
Very easy sol Solved in O(nlogn) (1)
Easy cpp solution in O(nlogn) (3)
Are the test cases weak or the time limit is too high, I wrote O(n2) program and (4)
Python O(n) Simple solution using min/max arrays (2)
Python 3 solution - Time Limit Exceeded? why? (3)
Code is failing a case (2)
Whats wrong test case is giving wrong output (2)