🔥100% Faster O(1) Solution
** Overview- Make two equation from given constraint. Say we have J jumbo burger and S small burger\n     then total tomato=4j+2s and total cheese =j+s and now 
** Overview- Make two equation from given constraint. Say we have J jumbo burger and S small burger\n     then total tomato=4j+2s and total cheese =j+s and now just solve them.**\n\t \n\tclass Solution {\n\t\tpublic:\n\t\t\tvector<int> numOfBurgers(int t, int c) {\n\t\t\t\tif(t==0 && c==0) return {0,0};\n\t\t\t\tif(t==0 || t%2!=0 || c==0) return {};\n\t\t\t\t vector<int> v;\n\t\t\t\t int x1=ceil((t-2*c)/2);\n\t\t\t\t int x2=floor((t-2*c)/2);\n\t\t\t\t if(x1>=0 && x2>=0 && x1==x2 && c-x1>=0){\n\t\t\t\t\t  v.push_back(x1);\n\t\t\t\t\t  v.push_back(c-x1);\n\t\t\t\t }\n\t\t\t\t return v;\n\t\t\t}\n\t\t};
['C']