Python3 O(n) || O(1) # Runtime: 1159ms 49.65% Memory: 18mb 49.96%
\nclass Solution:\n#     O(n) || O(1)\n# Runtime: 1159ms 49.65% Memory: 18mb 49.96%\n    def lemonadeChange(self, bills: List[int]) -> bool:\n        fiveBills,
```\nclass Solution:\n#     O(n) || O(1)\n# Runtime: 1159ms 49.65% Memory: 18mb 49.96%\n    def lemonadeChange(self, bills: List[int]) -> bool:\n        fiveBills, tenBills = 0, 0\n\n        for i in bills:\n            if i == 5:\n                fiveBills += 1\n            elif i == 10:\n                tenBills += 1\n                fiveBills -= 1\n            elif tenBills > 0:\n                tenBills -= 1\n                fiveBills -= 1\n            else:\n                fiveBills -= 3\n\n            if fiveBills < 0:\n                return False\n\n\n        return True \n```
['Python', 'Python3']