Questions › Technical PM › Top-Interview
Given an org chart tree, compute each employee's level, identify balanced employees, and build a histogram of employees by level.
- Technical PM
- Top-Interview
- Easy
- 10 min
Focus on understanding the structure of the org chart tree and how to traverse it effectively, likely using depth-first or breadth-first search algorithms. Clearly define what constitutes a "balanced" employee—typically, this refers to employees who have the same number of direct reports across their subordinates. When building the histogram, ensure you can efficiently count the number of employees at each level and represent this data clearly. Be prepared to discuss edge cases, such as handling employees with no subordinates or varying tree depths, and consider the time and space complexity of your solution.
What this question tests
- Technical PM
- Structured problem solving
- Communication
- Trade-off reasoning
Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.
Related Technical PM questions
- Walk me through the technical architecture of your product.Top-Interview · Technical PM · Medium
- Design Amazon Prime video.Top-Interview · Technical PM · Medium
- Design a system to log messages in orderTop-Interview · Technical PM · Medium
- Design a distributed logging system.Top-Interview · Technical PM · Medium
- Design a system to detect bot players.Top-Interview · Technical PM · Medium
- Design an end-to-end ML solution to detect ads selling weapons.Top-Interview · Technical PM · Medium
All Technical PM questions · Product manager interview questions by skill area