class Solution {
public:
vector<bool> kidsWithCandies(vector<int>& candies, int extraCandies) {
int maxCandy = 0;
for(int i = 0; i<candies.size(); ++i) maxCandy = max(maxCandy, candies[i]);
vector<bool> answer = vector<bool>();
for(int i = 0; i<candies.size(); ++i) answer.push_back(candies[i] + extraCandies >= maxCandy);
return answer;
}
};