LeetCode 200. Number of Islands – Given a 2D grid of '1's (land) and '0's (water), count the number of islands. Follow-up: implement the solution with BFS and discuss corner-case handling.
leetcode.com/problems/number-of-islands/description/
Sign in to leave a comment