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).
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early June, 2026
Senior
Early May, 2026
Junior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.