Largest Tree Root
Given parent-child relationships in a forest, find the root of the tree with the largest number of nodes.
Each relationship is represented as (child, parent). All relationships form multiple disjoi...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
