Count Number of Possible Root Nodes

hardSolve on LeetCodeLast edited: August 2, 2025