Histogram area problem

code with changes you made

my code

Hey @gulatigarvita08
U declared lb array twice and havent declared rb array

  • Remove re decleration of lb array
  • Declare Rb array
  • Create them dynamically

still run time error

https://practice.geeksforgeeks.org/problems/maximum-rectangular-area-in-a-histogram-1587115620/1#

Hey @gulatigarvita08
Its working perfectly on my side
Submitted ur code as its

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.