Optimal Crop Selection for Maximum Profit

Asked at Block · Coding Questions · Difficulty: Medium

Given a list of crops, each with a **buy price**, a **sell price**, and **days to mature**. You have a certain amount of money and need to determine which crops to purchase to maximize profit. (The source asks the candidate to flesh this out into a fully specified programming problem with requirements, test cases, and data scale.)

Loading the problem…