HTMLify

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

Comments