Maximize Minimum Scaled Value
Company: Uber
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: hard
Interview Round: Take-home Project
Quick Answer: This question evaluates algorithmic optimization and resource-allocation skills, focusing on integer scaling under a global budget to maximize the minimum final value across elements. It is asked in the Coding & Algorithms domain to probe trade-off reasoning and problem-solving under constraints, and the level of abstraction is practical application (algorithm design and implementation).
Constraints
- Inputs are Python literals matching the function signature.
- Return a deterministic exact-match value.
Examples
Input: ([2,3], [1,10], 2)
Expected Output: 3
Explanation: Boost lower-cost value.
Input: ([5,5], [1,1], 0)
Expected Output: 5
Explanation: No spending.
Input: ([1,10,2], [1,2,3], 5)
Expected Output: 3
Explanation: Binary search target.
Hints
- Use deterministic tie-breaking for prompts with multiple valid outputs.
- For design-style APIs, simulate operations with explicit inputs.