Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
Largest Tree Root ID
Medium
Question
Each pair [child, parent] in relations links a node to the node directly above it, and together the pairs describe a forest. Cycles never occur, and every node hangs below at most one parent.
...
More Goldman Sachs interview questions
- Tree Diagonal Traversalmedium
- Stack and Queue Implementationsmedium
- Parallel Task Schedulerhard
- Fire Spread in Binary Treemedium
- Best Average Scoreeasy
- Autocorrect Anagram Prototypeeasy
- Triangle Point Containmentmedium
- Optimal Team Formationmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.