Wednesday, February 23, 2011

Area for historgrams

You are given an array representing heights of bars for an histogram. Find a rectangle in this histogram that has the maximum area.

No comments:

Post a Comment