Find the biggest rectangle that can be formed in a given histogram using a series of adjacent bars with heights specified in an array. Assume all bars have the same width of 1 unit for simplicity.
Visual representation for the sample test:
Input:
6
2 1 5 6 2 3
Output:
10
Nearest position | |
Subarray minimum | |
Peak Product | |
Histogram | |
Maximum subsequence value | |
Deleting digits | |
Electric poles | |
Planting flowers | |
Ring road | |
Prefix minimum | |
Knee surgery |