HTMLify
LeetCode - Kids With the Greatest Number of Candies - Python
Views: 165 | Author: abh
class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
return [c + extraCandies >= max(candies) for c in candies]