3
vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {5
// Total Number of Burgers is Equal to Number of cheeseSlices6
// Try to make 1 --> cheeseSlices Amount of Jumbo Burgers and7
// remaining will be Small Burger9
if (tomatoSlices == 0 and cheeseSlices == 0) {10
ans.push_back(0), ans.push_back(0);13
// Do Binary Search to Get Ideal Division.14
int low = 0, high = cheeseSlices;16
int mid = (low + high) / 2;17
int jumbo = mid, small = cheeseSlices - mid;18
// Jumbo needs 4 tomatoes per burger19
// Small needs 2 tomatoes per burger20
int needJumboTom = jumbo * 4;21
int needSmallTom = small * 2;22
// Should Add Upto tomatoSlices23
if (needJumboTom + needSmallTom == tomatoSlices) {24
ans.push_back(jumbo), ans.push_back(small);26
} else if (needJumboTom + needSmallTom < tomatoSlices) {