Frame Hierarchy Queries
You are given a hierarchy of Figma Frames. Each Frame has at most one parent, and all Frames form a rooted tree. Frames are numbered from 1 to N; the root Frame has parent 0.
Process the follow...
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:
