🔥Easy C++ Solution || In One Line🔥
\n Describe your first thoughts on how to solve this problem. \n\n Describe your approach to solving the problem. \n\n# Complexity\n- Time complexity:\nO(1)\n A
\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n**```O(1)```**\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n**```O(1)```**\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n\n# Code\n```\n// if it helps plzz upvote it \uD83D\uDE09\nclass Solution {\npublic:\n    vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {\n        if(tomatoSlices % 2 == 0 && cheeseSlices <= tomatoSlices/2 && tomatoSlices <= cheeseSlices *4)\n            return {(tomatoSlices/2)-cheeseSlices,(2*cheeseSlices) - (tomatoSlices/2)};\n        return {};\n    }\n};\n// if it helps plzz upvote it \uD83D\uDE09**Bold**\n```
['Math', 'C++']