InterviewDB Question

Employee Directory - Build Org Chart with Reporting Chain Queries

Question Details

Problem You have an employee dataset: [(emp_id, name, manager_id)]. The root employee has manager_id = None. Implement: Example Follow-ups How do you detect cycles in the manager relationship (corrupt data)? Write lowest_common_manager(a, b) that ret…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone