Number of Islands Solution InterviewBit LeetCode

Coding Interview Questions

Number of Islands is a classic interview question asked in most of the interview questions. It’s a very frequent interview question that can test your knowledge of Depth First Search and Breadth-First Search. Question: Number Of Islands Given an m x n 2D binary grid grid which represents a map of ‘1’s (land) and ‘0’s (water), return the number of islands. An island is … Read more