Given a 2D grid of "1" (land) and "0" (water), return the number of islands. An island is connected horizontally or vertically.
Practise this challenge
All coding challenges