LeetCodeKids With the Greatest Number of CandiesKids With the Greatest Number of CandiesEasyArraySolution export function kidsWithCandies(candies: number[], extraCandies: number): boolean[] { const maxCandies = candies.reduce((prev, curr) => Math.max(prev, curr), 0); return candies.map((candy) => candy + extraCandies >= maxCandies); }LeetCodeKids With the Greatest Number of Candieshttps://leetcode.com/problems/kids-with-the-greatest-number-of-candies