Number of Islands

Uses recursive or iterative flood fill to test traversal state, base cases, and component counting with judge feedback.

The third-party problem and answer are not reproduced here. Use the exact source locator below.

Local history

Loading attempts saved in this browser…

    Appears in