Help with error

prob: https://leetcode.com/problems/max-area-of-island/

sol: https://ide.codingblocks.com/s/406377

Hey @raghav007
I think u are trying to do this using backtracking
1st thing it complexity will be exponential
2nd things its implementation is also not correct

This is a graphs question ,refer to solution if req

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.