CodingReported in a candidate post, Feb 2025
Closest department between employees in a company hierarchy
Filed under Atlassian
The question
Given a company hierarchy (company, departments, employees), find the closest common department for a list of employees. A working solution was required, including building the hierarchy graph. The candidate used a lowest-common-ancestor approach.
No write-up yet. Related questions below have one.
Related Atlassian questions
Collected from public candidate posts and coding forums. Updated Nov 2026.