Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3050. Pizza Toppings Cost Analysis
Given base pizza prices and topping prices, determine which total price closest to a target budget can be achieved by choosing one base and any combination of toppings (with limited repeats per topping); solve by enumerating achievable sums via backtracking or knapsack-like DP and selecting the cost with the smallest difference (with tie-break rules).
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.