200 Number of Islands
Techniques Used
Graph
DFS
Approach
Initialize the visited matrix to keep track of visited elements & also the island_count.
Apply nested for loops to visit all elements of the grid
Conditions to apply dfs on an element of the grid
if it has not b...
raahulsaxena.hashnode.dev2 min read