CodingReported in a candidate post, Aug 2025
Find the height of the organizational tree and restrict max height
Filed under Rippling
The question
Given arrays representing managers and reportees where 1 represents the CEO, find the level of the farthest employee from the CEO. Follow-up: optimally restructure the org tree using a greedy approach so no employee is beyond height h while minimizing the number of direct reportees to the CEO.
No write-up yet. Related questions below have one.
Related Rippling questions
Collected from public candidate posts and coding forums. Updated Nov 2026.