Leetcode 2431. Maximize Total Tastiness of Purchased Fruits
Select which fruits to buy given each fruit's price and tastiness to maximize total tastiness without exceeding a budget — a knapsack-style optimization. Expect to use DP (or greedy if special discounts/quantity rules apply) to handle price constraints and selection limits.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.