The Quest Begins (The "Why") I still remember the first time I saw LeetCode 323 “Number of Connected Components in an Undirected Graph”. I stared at the adjacency list, thought “I’ll just run a DFS from every node”, and coded it up in ten minutes. The solution passed the easy tests, but when th...

Source: [Dev.to](https://dev.to/timevolt/union-find-the-fellowship-of-the-sets-10dd)

Sponsored