Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.