Available question text
Given a Person class and a FamilyTree class, implement the getAncestors method on Person and the areRelated and commonAncestors methods on FamilyTree.
Related questions
Continue with questions that share topics or the same question type.
- All Nodes Distance K in Binary Tree
Coding · Binary Tree · Breadth-First Search · Depth-First Search
- Amount of Time for Binary Tree to Be Infected
Coding · Binary Tree · Breadth-First Search · Depth-First Search
- Average of Levels in Binary Tree
Coding
- Balance a Binary Search Tree
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 2 records
Microsoft
Implement a Family Tree
Reported Apr 22, 2026 · 2 source reports
JUNIOR
Source snapshot: Nov 12, 2026
View sourceSoFi
Implement a Family Tree
Reported Feb 19, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source