Expedia Group: Maximise workshop productivity from workers with fees under a budget
Problem. You have a pool of workers. Each one has a hiring fee and a productivity value, and there is a fixed total budget for labour. Choose workers to get the highest possible productivity for the workshop without going over budget.
Expectation. The interviewer wanted an optimised solution that uses binary search, not a brute-force search over subsets.
Context. Problem-solving round for an SDE 1 opening in Gurugram, preceded by a project discussion with follow-up questions. The candidate got a positive verdict here. The loop also had a design round (build a scraper that compares listings from two travel sites side by side), which went badly and led to the rejection, and a hiring-manager round.
What to prepare. The post gave no examples or limits. Clarify whether workers can be split or taken only whole, and whether productivity combines by sum or by some limiting rule, because that decides what you binary search on (a target productivity level checked against the budget is a common framing).
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.