func kidsWithCandies(candies []int, extraCandies int) []bool {
maxCandy := 0
for _, v := range candies{
if v > maxCandy{
maxCandy = v
}
}
res := make([]bool, len(candies))
for i,candy := range candies{
res[i] = candy + extraCandies >= maxCandy
}
return res
}