Maximize Billable Value When Staffing Consultants to Projects
Last updated: November 29, 2026
Quick Overview
Each consultant has skills and a billing rate, and each project has one required skill and a number of open seats. Assign each consultant to at most one eligible project so that total billable value is maximized, and return the plan.
Deloitte
November 29, 20260
0
0 solved
Each consultant has skills and a billing rate, and each project has one required skill and a number of open seats. Assign each consultant to at most one eligible project so that total billable value is maximized, and return the plan.
Staffing and utilization drive a consultancy's economics, so a resource-planning problem fits a Deloitte onsite for engineers who build internal delivery tools. The interviewer is checking whether you recognize that greedy by rate fails, model it as weighted bipartite matching with capacities, and can implement min-cost flow correctly.
What the Interviewer Expects
- Shows a counterexample where greedy by highest rate is not optimal
- Models the problem as min-cost flow with negated weights
- Implements successive shortest paths with Bellman-Ford because costs are negative
- Stops augmenting when the next path no longer increases value
- States complexity and when an LP or Hungarian solver would be preferable
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- Consultants can split time across two projects at 50% each. How does the model change?
- Add a constraint that each project needs at least one senior consultant. What then?
- How would you explain to a staffing manager why the tool did not put their top person on their project?
- The firm has 20,000 consultants and 3,000 open roles. Is this still practical?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Inputs: consultant list, projects: name -> seats, and value(c, p) returning a rate when the consultant has the required skill (else None). Each consultant is placed at most once, each project ge...
High-Level Design
Greedy fails. Example: Ana (SAP, Java, 200), Ben (SAP, 150), Cy (Java, cloud, 180), Dee (cloud, 120), one seat each on ERP (SAP), migration (cloud) and API (Java). Greedy puts Ana on ERP first, then C...