Number of Islands — Day 5(Python)
Today we would be looking at one of the interviewers’ favorite questions. A frequently asked question in technical coding interviews. The question tests your understanding of Breadth-First-Search and Depth-First-Search and, I will solve the problem using both methods.
200. Number of Islands
Given a 2d grid map of
'1's (land) and
'0's (water), count the number of islands. An…