Python || O(1)->TC || O(1)->SC
\'\'\'\n\n\tclass Solution:\n\t\tdef numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n\n\t\t\t# total_jumbo + total_small = cheeseSlices\
\'\'\'\n\n\tclass Solution:\n\t\tdef numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:\n\n\t\t\t# total_jumbo + total_small = cheeseSlices\n\t\t\t# (4 * total_jumbo) + (2 * total_small) = tomatoSlices ie..., (2 * total_jumbo) + total_small = tomatoSlices / 2\n\n\t\t\t# solve above two eq for total_jumbo and total_small;\n\t\t\t# total_jumbo = tomatoSlices/2 - cheeseSlices\n\t\t\t# total_small = 2*cheeseSlices - tomatoSlices/2\n\n\t\t\tif 2 * cheeseSlices <= tomatoSlices <= 4 * cheeseSlices and  not tomatoSlices % 2:\n\t\t\t\treturn [tomatoSlices // 2 - cheeseSlices, 2 * cheeseSlices - tomatoSlices // 2]\n\t\t\telse: return []\n\'\'\'
[]