should i call another dfs for finding at which cell having 0 in contact with cell having 1 will result to max pond area or there is any trick. i am unbale to think it.
Expand the pond
Best is to refer this code. Comments are added.
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.