Maximum rectangle area


error

Hi Nisha, these are some bugs:

  1. In line 53, matrix2[i][j] is an int and not char.
  2. Line 56 should be result = max(result,maxAreaUnderHistogram(matrix2[i]));
    I also see bugs in maxAreaUnderHistogram this function!
    so first try maxAreaUnderHistogram (a separate question on leetcode) and then do this.


max area under histogram has passes all th test cases now in leetcode
maximum rectangle area is giving error

Hi Nisha, this one works now, take a look at changes made!

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.