Rosetta Problems

Count the Number of Complete Components

https://leetcode.com/problems/count-the-number-of-complete-components