Count Connected Components in LCM Graph

hardSolve on LeetCodeLast edited: August 2, 2025