please check my code where it is lagging
Unable to pass two test case
4
......
..##..
..#.#.
..###.
for this input you code output is 4 but correct ans is 3
what you have to do is make all submatirx and then check
reference code : if needed
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.