# 1431. Kids With the Greatest Number of Candies
###### tags: `Leetcode` `Easy`
Link: https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/description/
## Code
```python=
class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
ans = []
maxCandy = max(candies)
for candy in candies:
if candy+extraCandies>=maxCandy:
ans.append(True)
else: ans.append(False)
return ans
```