We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Data Structures
- Stacks
- Largest Rectangle
- Discussions
Largest Rectangle
Largest Rectangle
Sort by
recency
|
607 Discussions
|
Please Login in order to post a comment
// Please tell why error test cases go wrong on submit? public static long largestRectangle(List h) { int x = h.size() + 1; Stack stack = new Stack<>(); Collections.sort(h);
}
Python
C# solution using stacks a subroutine (which can be replaced with a simple Long Variable). but did for it.
//C# Solution