Open fockspaces opened 1 year ago
From GPT:
class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
max_amount, results = max(candies), []
for candy in candies:
results.append(candy + extraCandies >= max_amount)
return results
滿簡單的題目