Leetcode 0200. Number of Islands
Posted on Tue 26 November 2024 in Leetcode • Tagged with dfs-bfs-grid
Question Link : https://leetcode.com/problems/number-of-islands/
Difficulty: Medium
Premium: False
Question
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 …
Continue reading