You are viewing a single comment's thread. Return to all comments →
2 ways to solve this problem: - Use DFS: - Use Union Find data structure
See my solution here: https://github.com/tuphan22028238/DSA/tree/main/ComponentInGraph
Seems like cookies are disabled on this browser, please enable them to open this website
Components in a graph
You are viewing a single comment's thread. Return to all comments →
2 ways to solve this problem: - Use DFS: - Use Union Find data structure
See my solution here: https://github.com/tuphan22028238/DSA/tree/main/ComponentInGraph