← All problemsSign in

1276. Number of Burgers with No Waste of Ingredients

LeetCodeMathOpen on judge ↗

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 tom

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start