Maximum area of the histogram

https://ide.codingblocks.com/#/s/16218

this is my code for calculating max area… Getting correct output for the custom test cases but wrong ans for all test cases while submitting.
Look into it once…!

https://hack.codingblocks.com/contests/c/471/338

the Question link…!

Hey ! Your code is not working for the following test case
7
6 2 2 2 3 3 6
Hope u will able to figure your error , if not ask me again I will send u it’s code

https://ide.codingblocks.com/#/s/16292

Got that test case still wrong ans for all the test cases while submission…!!

Okay ! i corrected ur code first try it yourself . if you still face any difficulty the you can go through this
https://ide.codingblocks.com/#/s/16347
:stuck_out_tongue:

I haven’t check the constraints… the only error is have to take long long int rather than int .:):smile:

Cool then :stuck_out_tongue: