1254 Number of Closed Islands
Techniques Used
Graph
Simple DFS
Similar Problems
Number of Islands
Max Area of Island
Approach
Initialize the visited matrix to keep track of visited elements & also the closed_island_count.
Apply nested for loops to visit all elements of the g...
raahulsaxena.hashnode.dev3 min read