InterviewBit Problems
Largest Rectangle in Histogram : Solved
About the Largest Rectangle in Histogram : Solved category
(1)
Easiest Solution blahblahblah
(6)
NSL and NSR solution
(1)
C++ solution O(n) time O(n) space using next smallest element concept
(1)
Stack Approach O(n) solution enjoy
(1)
Wrong testcase in this
(1)
Easy stack based approach in C++ with O(n) time complexity
(1)
Easy C++ approach using nearest smallest and greatest element logic
(1)
O(n^2) Solution: Partially Accepted
(1)
Python Solution using two stacks
(1)
Solution - No need of Stacks--Use Recursive values in vector
(6)
Fully detailed solution
(1)
Best Solution (Ez and Short)
(1)
O(n) solution giving TLE in python 3. Works on pyt 2 and leetcode
(1)
Python Solution for Largest Rectangle in Histogram
(1)
Easy C++ Solution with Explanation
(1)
Easy c++ solution. might be helpful :-
(4)
Easy C++ solution no need to check stack empty condition
(3)
DnC O(nlogn) solution
(1)
Modularized c++ code
(1)
C++14 solution . using stack pair
(1)
Better than editorial, easy to understand
(3)
Some of the test cases are wrong
(1)
My solution for the max area
(1)
My code is giving run time error . please any one help me
(1)
Help me detect the error as its showing runtime error in my code
(1)
O(n) java solution using stack
(1)
What is wrong on my code?
(1)
If You know The previous smaller element and the next smaller element then you know the area with respect to the its bar : java AC solution
(1)
Simple O(n) solution in C++ with three stacks (tree based approach)
(1)
next page →