Maximize profit from purchasing at most K crops given capital constraints
Filed under Uber
The question
A farmer has an initial capital and n crops. Each crop has a required minimum capital and an associated profit. Select at most k crops to maximize total profit, where realized profit adds to the available capital (similar to IPO / LeetCode 502).
No write-up yet. Related questions below have one.
Related Uber questions
Collected from public candidate posts and coding forums. Updated Nov 2026.