Integer to English words https://leetcode.com/problems/integer-to-english-words/ Number of connected components in an undirected graph. The question wasn't actually this, but it was something similar that still uses the idea of finding all components. https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/