1276. Number of Burgers with No Waste of Ingredients
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> list:
        if (tomatoSlices - 2 * cheeseSlices) % 2 == 0 and tomatoSlices >= 2 * cheeseSlices:
            jumbo = (tomatoSlices - 2 * cheeseSlices) // 2
            small = cheeseSlices - jumbo
            if jumbo >= 0 and small >= 0:
                return [jumbo, small]
        return []

```
['Python3']