Technical Interview Question - Max Area of Island [LeetCode]

  Рет қаралды 8,539

AlgosWithMichael

AlgosWithMichael

Күн бұрын

Пікірлер: 17
@EyuCoder
@EyuCoder 2 жыл бұрын
this guy is better than most youtubers in explanation.👌
@barnettchiu9517
@barnettchiu9517 3 жыл бұрын
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.
@fabundemamey2029
@fabundemamey2029 4 жыл бұрын
You explain the problems so well bro. Keep it up!
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thank you so much 😀
@abhinavvgoyall
@abhinavvgoyall Жыл бұрын
Thank you so much. Your explanations are so good! Now I can solve such questions with ease.
@AlgosWithMichael
@AlgosWithMichael Жыл бұрын
Glad it helped!
@chaitanyawaikar382
@chaitanyawaikar382 4 жыл бұрын
Very simple explanation. Thanks a ton !!!
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Most welcome!
@yitingg7942
@yitingg7942 4 жыл бұрын
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.
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thank you, will do!
@yitingg7942
@yitingg7942 4 жыл бұрын
@@AlgosWithMichael Thank you so much Michael!! Millions of thanks!! I am watching your other videos.
@sakshamsingh6351
@sakshamsingh6351 3 жыл бұрын
Great Content!
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Thank you!
@ahmedkhalaf8726
@ahmedkhalaf8726 3 жыл бұрын
is "grid" parameter in "getArea( )" counted is the space complexity ???
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
No because grid is being passed by reference.
@sohanagupta6460
@sohanagupta6460 4 жыл бұрын
Nice Explaination :")
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thank you!
Technical Interview Question: Number of Islands [LeetCode]
17:48
AlgosWithMichael
Рет қаралды 32 М.
Amazon Coding Interview Question - Number of Distinct Islands
17:43
AlgosWithMichael
Рет қаралды 26 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 21 МЛН
Max Area of Island - Leetcode 695 - Python
11:14
NeetCode
Рет қаралды 63 М.
Complete Dynamic Programming Practice - Noob to Expert | Topic Stream 1
3:50:43
Max Area of Island | LeetCode 695 | C++, Python
20:20
Knowledge Center
Рет қаралды 4,1 М.
Google Coding Interview Question - Number of Closed Islands (LeetCode)
21:03
Kadane's Algorithm - Maximum Subarray (Dynamic Programming)
8:24
AlgosWithMichael
Рет қаралды 26 М.
Easy Google Coding Interview With Ben Awad
28:00
Clément Mihailescu
Рет қаралды 1 МЛН
Google Coding Question - Making a Large Island (Hard)
25:11
AlgosWithMichael
Рет қаралды 16 М.
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,5 МЛН
Google Coding Interview Question - Path With Maximum Gold (LeetCode)
17:24
Bucket Sort Interview Question - Min Time Difference (Amazon)
13:52
AlgosWithMichael
Рет қаралды 4,8 М.
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19