463 Island Perimeter
Techniques Used
Graph
Simple DFS
Approach
Perform dfs on all the non visited and nonzero elements of the grid
Maintain a (pass by reference) variable edgeCount. I have used array to make it pass by reference.
We mark the visited elements (that pre...
raahulsaxena.hashnode.dev2 min read