Last night I was attempting to solve leetcode\'s Number of Islands challenge. I was quite pleased with myself for solving it so quickly. The solution iterates over the rows