Locked

Pass the Dictionary check first

Everything after it builds on dictionaries. Each rep in the check has to be passed without opening the solution. Hints and Basics are fine.

Still to clear · 8 of 8

Continue the check

Preview · where this ladder is heading

Number of islands

A map is a grid of strings: "1" is land and "0" is water. Land cells that touch horizontally or vertically (not diagonally) belong to the same island. Everything outside the grid is water. Return how many islands there are.

ingrid = [["1","1","0"],["1","0","0"],["0","0","1"]]out2
ingrid = [["1","0","1","0","1"]]out3
ingrid = [["0","0"],["0","0"]]out0

You can read it now. The editor opens when the check is cleared.