fast python sol O(1)
```\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        x = tomatoSlices - 2 * cheeseSlices\n        if x 
```\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        x = tomatoSlices - 2 * cheeseSlices\n        if x >= 0 and x % 2 == 0 and cheeseSlices - x // 2 >= 0:\n            return [x // 2, cheeseSlices - x // 2]\n        return []
[]