leetcode #greedy #python

개발공부/algorithm

[리트코드] [Python] 860 Lemonade change - Greedy

860 Lemonade Change Greedy Easy 문제링크 Lemonade Change - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 class Solution: def lemonadeChange(self, bills: List[int]) -> bool: five_dollar = 0 ten_dollar = 0 result = True # if the first order is $10, no change if bills[0] == 10: resul..

so.py
'leetcode #greedy #python' 태그의 글 목록