Leetcode

1431.kidsWithGreatestNumberOfCandies.py

class Solution:
    def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
        greatest = max(candies)
        return [x + extraCandies >= greatest for x in candies]