1276. Number of Burgers with No Waste of Ingredients
https://leetcode.com/problems/number-of-burgers-with-no-waste-of-ingredients
Description
Given two integers tomatoSlices
and cheeseSlices
. The ingredients of different burgers are as follows:
Jumbo Burger: 4 tomato slices and 1 cheese slice.
Small Burger: 2 Tomato slices and 1 cheese slice.
Return [total_jumbo, total_small]
so that the number of remaining tomatoSlices
equal to 0 and the number of remaining cheeseSlices
equal to 0. If it is not possible to make the remaining tomatoSlices
and cheeseSlices
equal to 0 return []
.
Example 1:
Example 2:
Example 3:
Example 4:
Example 5:
Constraints:
0 <= tomatoSlices <= 10^7
0 <= cheeseSlices <= 10^7
ac
Last updated