public class Solution { public IListSource: https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/KidsWithCandies(int[] candies, int extraCandies) { var maxCandy = candies.Max(); return candies.Select(candy => candy + extraCandies >= maxCandy).ToList(); } }
No comments:
Post a Comment