There are n kids, and kid i has candies[i] candies. You also hold extraCandies candies. For each kid, decide whether giving that kid all of the extra candies would leave them with at least as many candies as every other kid (several kids may tie for the most). Return a boolean array result where result[i] is true if kid i would have the greatest number of candies, and false otherwise.
There are n kids, and kid i has candies[i] candies. You also hold extraCandies candies. For each kid, decide whether giving that kid all of the extra candies would leave them with at least as many candies as every other kid (several kids may tie for the most). Return a boolean array result where result[i] is true if kid i would have the greatest number of candies, and false otherwise.