Number of Islands  (LeetCode 200)
Channel: CodeWithARB
Date: 19/04/2024

Watch at 1.25x or 1.5x

In this video, I explain how to solve number of islands present in grid. I provide step-by-step instructions on how to iterate through the grid, identify the starting point, and move in all four directions to find the cells that are part of the island. I also discuss how count the number of islands in grid.

Solution and Explaination of  Leetcode POTD:


Question:  https://leetcode.com/problems/number-of-islands/description/


Solution : https://leetcode.com/problems/number-of-islands/submissions/1236252441/

0:00 Understanding the question
02:30 Intution
05:10 Approach
06:48 Analyzing Time and Space Complexity
07:45 Implementation
11:16  Successfully passed




#graph   #bfs  #recursion   #dfs #dsa     #leetcodemedium            #leetcode   #leetcodepotd          #leetcode  #NumberofIslands  #leetcodesolutions  #LeetCode200 @CodeWithARB