Rectangular painting two test cases are failing

can you please help me why my two test cases are not working

hi @jatingarg17

for input
5

....#
...#.
...##
.....
.....

output should be 3 but you code will give 5 which is wrong
think again and try again

the cordinate of rectangle which you have to paint is
(0,3) to (3,4)

so length of rectangle is 2 but breadth is 3
so cost is 3 max(length,breadth)

I hope this helps

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.