Drill Queue

Number of Islands

Challenge #9

MEDIUM Given an m x n 2D binary grid, return the number of islands. Edit

Description

Count islands in a grid.


Given an m x n 2D binary grid, return the number of islands.