find the lowest height of the bar multiply it with the number of the bars
in graph. it would be the minimum area.

On Tue, Jan 17, 2012 at 5:33 PM, Ashish Goel <[email protected]> wrote:

> You are given an array which represents the heights of every bar of a
> histogram. Now all these bars are contiguous (juxtaposed wrt each other)
> and have the same width. For Example, A={2,1,4} represents a histogram
> having 3 bars of height 2,1and 4 in that order. Now you need to find a
> rectangle in this histogram that has the maximum area.
>
>
> Best Regards
> Ashish Goel
> "Think positive and find fuel in failure"
> +919985813081
> +919966006652
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
AMRIT

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to