The Number of Seniors and Juniors to Join the Company II
With a $70,000 salary budget, take seniors from cheapest upward until the next one is unaffordable, then spend what is left on juniors the same way. Report the ids of everyone taken on.
With a $70,000 salary budget, take seniors from cheapest upward until the next one is unaffordable, then spend what is left on juniors the same way. Report the ids of everyone taken on.