[SOLVED!] Number of Islands - LeetCode 200 - Java

preview_player
Показать описание
#coding #interviews #softwareengineering

The solution to LeetCode problem 200.

Description: Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.

An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.

Solution: I start with software engineering interview question by explaining the problem, coding the solution, running it through IntelliJ, and finally submitting it in LeetCode. Join me as I try to explain the solution and like or subscribe if you found it helpful. Thanks!

SOCIAL
----------------------------------------------------------------------------------------------------------------
Рекомендации по теме