Simple Maths Beats 100% TC : O(1) SC:O(1)
IntuitionSimple mathsApproach2x+4y=TomatoSlice
x+y=cheesSlice
x->number of normal burger'
y->number of jumbo burgerComplexity
Time complexity:
O(1)

Space compl
# Intuition
Simple maths
<!-- Describe your first thoughts on how to solve this problem. -->


# Approach
2x+4y=TomatoSlice
x+y=cheesSlice
x->number of normal burger'
y->number of jumbo burger
<!-- Describe your approach to solving the problem. -->

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

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

# Code
```cpp []
class Solution {
public:
    vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {
     if(tomatoSlices-2*cheeseSlices<0) return {};
     if((abs(tomatoSlices-2*cheeseSlices))%2==0){
               int y=abs(tomatoSlices-2*cheeseSlices);
               int x=cheeseSlices-y/2;
               if(x<0 || y<0) return {};
               return {y/2,x};
     }   
     else{
        return {};
     }
    }
};
```
['Math']