Count the Number of Complete Components

mediumSolve on LeetCodeLast edited: August 2, 2025