top of page


LeetCode - Number of Islands BFS Solution
Given a m x n 2D binary array grid which represents of map of '1's (land) and '0's (water), return the number of islands in this grid.

Code Recipe
Dec 27, 20244 min read


LeetCode - Number of Islands Fastest Solution
Given a 2D m x n array grid containing only 1s (land) and 0s (water), count the number of islands in it. An island is surrounded by

Ashwin Shirva
Dec 26, 20244 min read
bottom of page