Tree Structure: Hierarchy - Intermediate Level: tricky scenarios handling Tree Structure: Hierarchy INTERMEDIATE

This expert challenge 📈 worksheet focuses on Tree Structure: Hierarchy - a key topic in Data Arrangement. You'll solve 20 intermediate-level problems (Worksheet 5 of 10). The primary focus is on tricky scenarios handling. Master how to solve tree structure: hierarchy, tree structure: hierarchy tricks, and tree structure: hierarchy shortcut methods through systematic practice.

📝 Worksheet 5 of 10 • 20 questions • ⏱️ Estimated time: 20 minutes • 🎯 Intermediate level

What you'll learn in this worksheet:
Your progress through Tree Structure: Hierarchy
Worksheet 5 of 10 (44% complete)

Question 1

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Aarav and Vihaan report to Jatin. - Sahil and Nihal report to Aarav. - Ira reports to Vihaan. - The Head is Jatin in Tech department. Question: Who is the direct manager of Sahil?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Jatin → Aarav
- Jatin → Vihaan
- Aarav → Sahil
- Aarav → Nihal
- Vihaan → Ira
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 2

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Priya and Qadir report to Cyrus. - Rhea and Gaurav report to Priya. - Eshan reports to Qadir. - The Head is Cyrus in Finance department. Question: Who is the direct manager of Priya?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Cyrus → Priya
- Cyrus → Qadir
- Priya → Rhea
- Priya → Gaurav
- Qadir → Eshan
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 3

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Laksh and Qadir report to Fatima. - Hina and Zoya report to Laksh. - Mira reports to Qadir. - The Head is Fatima in Tech department. Question: Who is the direct manager of Hina?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Fatima → Laksh
- Fatima → Qadir
- Laksh → Hina
- Laksh → Zoya
- Qadir → Mira
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 4

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Wafa and Ira report to Mira. - Zoya and Sahil report to Wafa. - Hina reports to Ira. - The Head is Mira in HR department. Question: Who is the direct manager of Zoya?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Mira → Wafa
- Mira → Ira
- Wafa → Zoya
- Wafa → Sahil
- Ira → Hina
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 5

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Cyrus and Tara report to Eshan. - Rhea and Zoya report to Cyrus. - Hina reports to Tara. - The Head is Eshan in Finance department. Question: Who is the direct manager of Rhea?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Eshan → Cyrus
- Eshan → Tara
- Cyrus → Rhea
- Cyrus → Zoya
- Tara → Hina
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 6

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Ira and Vihaan report to Uma. - Cyrus and Yash report to Ira. - Fatima reports to Vihaan. - The Head is Uma in Tech department. Question: Who is the direct manager of Fatima?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Uma → Ira
- Uma → Vihaan
- Ira → Cyrus
- Ira → Yash
- Vihaan → Fatima
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 7

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Sahil and Cyrus report to Laksh. - Ira and Eshan report to Sahil. - Rhea reports to Cyrus. - The Head is Laksh in Marketing department. Question: Who is the direct manager of Ira?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Laksh → Sahil
- Laksh → Cyrus
- Sahil → Ira
- Sahil → Eshan
- Cyrus → Rhea
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 8

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Hina and Diya report to Priya. - Wafa and Yash report to Hina. - Zoya reports to Diya. - The Head is Priya in HR department. Question: Who is the direct manager of Diya?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Priya → Hina
- Priya → Diya
- Hina → Wafa
- Hina → Yash
- Diya → Zoya
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 9

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Hina and Xavier report to Vihaan. - Kaira and Omar report to Hina. - Mira reports to Xavier. - The Head is Vihaan in Finance department. Question: Who is the direct manager of Omar?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Vihaan → Hina
- Vihaan → Xavier
- Hina → Kaira
- Hina → Omar
- Xavier → Mira
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 10

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Laksh and Hina report to Fatima. - Yash and Vihaan report to Laksh. - Uma reports to Hina. - The Head is Fatima in HR department. Question: Who is the direct manager of Yash?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Fatima → Laksh
- Fatima → Hina
- Laksh → Yash
- Laksh → Vihaan
- Hina → Uma
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 11

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Kaira and Diya report to Yash. - Nihal and Tara report to Kaira. - Qadir reports to Diya. - The Head is Yash in Tech department. Question: Who is the direct manager of Qadir?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Yash → Kaira
- Yash → Diya
- Kaira → Nihal
- Kaira → Tara
- Diya → Qadir
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 12

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Xavier and Gaurav report to Sahil. - Omar and Tara report to Xavier. - Diya reports to Gaurav. - The Head is Sahil in Sales department. Question: Who is the direct manager of Tara?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Sahil → Xavier
- Sahil → Gaurav
- Xavier → Omar
- Xavier → Tara
- Gaurav → Diya
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 13

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Zoya and Sahil report to Omar. - Priya and Uma report to Zoya. - Fatima reports to Sahil. - The Head is Omar in Tech department. Question: Who is the direct manager of Zoya?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Omar → Zoya
- Omar → Sahil
- Zoya → Priya
- Zoya → Uma
- Sahil → Fatima
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 14

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Xavier and Nihal report to Qadir. - Priya and Cyrus report to Xavier. - Bhavya reports to Nihal. - The Head is Qadir in Marketing department. Question: Who is the direct manager of Bhavya?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Qadir → Xavier
- Qadir → Nihal
- Xavier → Priya
- Xavier → Cyrus
- Nihal → Bhavya
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 15

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Zoya and Eshan report to Priya. - Gaurav and Yash report to Zoya. - Qadir reports to Eshan. - The Head is Priya in HR department. Question: Who is the direct manager of Yash?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Priya → Zoya
- Priya → Eshan
- Zoya → Gaurav
- Zoya → Yash
- Eshan → Qadir
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 16

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Aarav and Bhavya report to Mira. - Zoya and Qadir report to Aarav. - Laksh reports to Bhavya. - The Head is Mira in Marketing department. Question: Who is the direct manager of Aarav?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Mira → Aarav
- Mira → Bhavya
- Aarav → Zoya
- Aarav → Qadir
- Bhavya → Laksh
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 17

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Cyrus and Yash report to Fatima. - Omar and Priya report to Cyrus. - Jatin reports to Yash. - The Head is Fatima in HR department. Question: Who is the direct manager of Omar?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Fatima → Cyrus
- Fatima → Yash
- Cyrus → Omar
- Cyrus → Priya
- Yash → Jatin
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 18

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Tara and Eshan report to Laksh. - Zoya and Cyrus report to Tara. - Jatin reports to Eshan. - The Head is Laksh in HR department. Question: Who is the direct manager of Zoya?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Laksh → Tara
- Laksh → Eshan
- Tara → Zoya
- Tara → Cyrus
- Eshan → Jatin
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 19

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Ira and Jatin report to Mira. - Nihal and Uma report to Ira. - Wafa reports to Jatin. - The Head is Mira in Sales department. Question: Who is the direct manager of Wafa?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Mira → Ira
- Mira → Jatin
- Ira → Nihal
- Ira → Uma
- Jatin → Wafa
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.

Question 20

Six employees with distinct departments and roles form a reporting hierarchy. Use the clues to build the tree and answer: - Nihal and Qadir report to Xavier. - Vihaan and Aarav report to Nihal. - Cyrus reports to Qadir. - The Head is Xavier in HR department. Question: Who is the direct manager of Cyrus?
Hierarchical Tree Construction
Draw a tree: place the Head at root. Connect direct reports according to clues.
Assign departments/roles after structure is stable.
Final tree edges (manager → report):
- Xavier → Nihal
- Xavier → Qadir
- Nihal → Vihaan
- Nihal → Aarav
- Qadir → Cyrus
Verification:
- All reporting relations satisfied.
- Unique direct manager per non-root node.
- Department/role association consistent with headship.
Previous Worksheet Next Worksheet