6. Find the Number of Islands
Problem Description
Example:
grid = [[0, 1],
[1, 0],
[1, 1],
[1, 0]]grid = [[0, 1, 1, 1, 0, 0, 0],
[0, 0, 1, 1, 0, 1, 0]]My Approach
Time and Auxiliary Space Complexity
Code (C++)
Code (Java)
Code (Python)
Contribution and Support
📍Visitor Count
Last updated