No reports yet. Sign in to say where you were asked it.
Given a binary matrix, return how many islands it has: groups of 1 cells connected up, down, left or right (diagonals don't connect).
1