Algorithm · Amazon · Easy
Create a program that determines how many unique pizza slice combinations are possible. A pizza is described by its base, its size, and its toppings. Given a size and a toppings list, return the number of distinct slice choices available for that size. Example Explanation: With one available topping, a slice can be ordered either without it or with it, producing two possible combinations. Additional Examples Explanation: When no toppings are available, only the plain slice…
Checking your access…