The Wayback Machine - https://web.archive.org/web/20230817011420/https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/