Number of Islands - LeetCode 200 - JavaScript

preview_player
Показать описание


Step by step walk through of the solution to the popular Amazon coding interview question, Number of Islands.

LeetCode 200

JavaScript

0:00 Intro
0:59 Explanation
7:29 Code

#softwareengineering #javascript #leetcode
Рекомендации по теме
Комментарии
Автор

This is by far the most underrated and underwatched playlist I have ever come across. You deserve more. Keep it up. Great set of videos mate : )

ajaysrinivas
Автор

This is best channel for DnA; the explanations and executions are spot on. Thank you for putting out great content.

weipengjiang
Автор

Thank you so much, your tutorials has helped me greatly with recursions

basseyjennifer
Автор

Great explanation. Saw someone trying to do it with a stack instead of recursion and I didn't understand shit. Recursion is more akin to the thought process when we humans try to count the islands looking at the matrix. Thank you!!

danielsampar
Автор

if you are returning nothing in dfs function, isnt count + undefined mean NaaN?

notionSlave
Автор

Thanks much. As the grid is available for the dfs recursive function, we can remove the grid argument right I mean we don't have to pass it right?

pushpakkurella
Автор

Great explanation. What is the software you used for the sketch? TIA

johnacsyen
Автор

Maybe this is a stupid question, but why do we visit the same we've visited earlier? timestamp 4:09

jananadiwedagedara
Автор

missing grid[row] === undefined check for example 2 input to run. Nice example though.

ivanprokic
Автор

Bruh this is a medium problem? Im so fked lol

dragonborn
visit shbcf.ru