this guy is better than most youtubers in explanation.👌
@barnettchiu95173 жыл бұрын
I'd recommend using a set (or hashset) to keep track of the visited locations (i, j) because setting grid[i][j] from 1 to 0 (from land to water) introduces a side effect, meaning that the same 'grid' variable will not be reusable after the call without making a deep copy of it first.
@fabundemamey20294 жыл бұрын
You explain the problems so well bro. Keep it up!
@AlgosWithMichael4 жыл бұрын
Thank you so much 😀
@abhinavvgoyall Жыл бұрын
Thank you so much. Your explanations are so good! Now I can solve such questions with ease.
@AlgosWithMichael Жыл бұрын
Glad it helped!
@chaitanyawaikar3824 жыл бұрын
Very simple explanation. Thanks a ton !!!
@AlgosWithMichael4 жыл бұрын
Most welcome!
@yitingg79424 жыл бұрын
Hi Michael, thank you so much for the explanation. I really like to watch your video. Please keep doing them. Can you please also do a video about leetcode 547 friend circles? It seems very similar to this question but not the same and I got very confused.
@AlgosWithMichael4 жыл бұрын
Thank you, will do!
@yitingg79424 жыл бұрын
@@AlgosWithMichael Thank you so much Michael!! Millions of thanks!! I am watching your other videos.
@sakshamsingh63513 жыл бұрын
Great Content!
@AlgosWithMichael3 жыл бұрын
Thank you!
@ahmedkhalaf87263 жыл бұрын
is "grid" parameter in "getArea( )" counted is the space complexity ???