lemonde easy solution
\n# Complexity\n- Time complexity:O(n)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity:0(1)\n Add your space complexity here, e.g. O(n) \n\n# 
\n# Complexity\n- Time complexity:O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:0(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```python3 []\nclass Solution:\n    def lemonadeChange(self, bills: List[int]) -> bool:\n        if bills[0] != 5:\n            return False\n        five  =0 \n        ten = 0  \n        for i in bills:\n            if i== 5:\n                five+=1\n            elif  i == 10:\n                if five > 0:\n                    five -=1\n                else:\n                    return False\n                ten+=1\n            else:\n                if five > 0 and ten >0 :\n                    five -=1\n                    ten -=1\n                elif five > 2:\n                    five-=3\n                else:\n                    return False\n        return True\n```\n```java []\npublic class Solution {\n    public boolean lemonadeChange(List<Integer> bills) {\n        int five = 0;\n        int ten = 0;\n\n        for (int bill : bills) {\n            if (bill == 5) {\n                five++;\n            } else if (bill == 10) {\n                if (five > 0) {\n                    five--;\n                } else {\n                    return false;\n                }\n                ten++;\n            } else { // bill == 20\n                if (five > 0 && ten > 0) {\n                    five--;\n                    ten--;\n                } else if (five >= 3) {\n                    five -= 3;\n                } else {\n                    return false;\n                }\n            }\n        }\n        return true;\n    }\n}\n\n```
['Array', 'Greedy', 'Java', 'Python3']