Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.