How can you find the number of connected components? — For each node: if node not yet visited, increment component count and do DFS.
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university