Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 5f2890e

Browse files
authored
Merge pull request #159 from visheshruparelia/1276_Number_of_Burgers_with_No_Waste_of_Ingredients
1276 Number of Burgers with No Waste of Ingredients fixes #124
2 parents 0e0e9e3 + 07142f2 commit 5f2890e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Solution:
2+
def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:
3+
t=tomatoSlices
4+
c=cheeseSlices
5+
return [int(t / 2 - c), int(c * 2 - t / 2)] if t % 2 == 0 and c * 2 <= t <= c * 4 else []

0 commit comments

Comments
 (0)