Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2431. Maximize Total Tastiness of Purchased Fruits
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source