Given an integer array candies of length n, where candies[i] represents the number of candies the extraCandies, determine whether each kid can have the greatest number of candies after receiving all extraCandies.
Return a boolean array result of length n, where result[i] is TRUE if the extraCandies, and FALSE otherwise.
Note: Multiple kids can have the greatest number of candies at the same time.
Constraints:
n == candies.length
n
candies[i]
extraCandies
Given an integer array candies of length n, where candies[i] represents the number of candies the extraCandies, determine whether each kid can have the greatest number of candies after receiving all extraCandies.
Return a boolean array result of length n, where result[i] is TRUE if the extraCandies, and FALSE otherwise.
Note: Multiple kids can have the greatest number of candies at the same time.
Constraints:
n == candies.length
n
candies[i]
extraCandies