Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. Assume that all bars have the same width of 1 unit.
{
"heights": [
2,
1,
5,
6,
2,
3
]
}10{
"heights": [
6,
2,
5,
4,
5,
1,
6
]
}12{
"heights": [
2,
4
]
}4Sign in to Run Code and Submit