🚀  Time O(1) and Space O(1) - Explore the unexplored 🔥
\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        if tomatoSlices == 0 and cheeseSlices == 0:\n        
```\nclass Solution:\n    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n        if tomatoSlices == 0 and cheeseSlices == 0:\n            return [0,0]\n        elif tomatoSlices % 2 != 0 or cheeseSlices * 4 < tomatoSlices or tomatoSlices < cheeseSlices * 2 or cheeseSlices == 0 or tomatoSlices == 0:\n            return []\n        \n        remaining = tomatoSlices - (cheeseSlices * 2)\n        \n        if 4 * (remaining // 2) + (2 * (cheeseSlices - (remaining // 2))) == tomatoSlices:\n            return [remaining // 2, cheeseSlices - (remaining // 2)]\n\n        return []\n```
['Math', 'Python']