Algorithm · Rubrik · Hard
Problem Statement A company has N employees arranged in a tree-shaped reporting hierarchy. Every employee except the CEO has a reporting manager (RM). An employee can receive tasks only from their direct RM, or from the RM of their RM, and so on up the chain. Each employee has a fixed hiring cost and a leadership level. You are to select a set of employees to work for a client. The total cost of the selected employees must not exceed a given budget. In addition, you must…
Checking your access…