C++ Solution Beats 100%
Code
# Code
```cpp []
class Solution {
public:
    vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {
        int rem = tomatoSlices - 2 * cheeseSlices;
        if(rem % 2 || rem < 0 || rem > 2 * cheeseSlices)
            return {};
        
        return {rem / 2, cheeseSlices - rem / 2};
    }
};
```
['C++']