Employee Hierarchy FTE Score and Capacity-Constrained Insertion
Implement an employee hierarchy manager. Every employee has a unique eid, and all employees form a rooted reporting tree with the CEO as its root.
Define the FTE score of employee eid as the ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
