diff --git a/cs/kids-with-the-greatest-number-of-candies.cs b/cs/kids-with-the-greatest-number-of-candies.cs new file mode 100644 index 0000000..ce8878b --- /dev/null +++ b/cs/kids-with-the-greatest-number-of-candies.cs @@ -0,0 +1,6 @@ +public class Solution { + public IList KidsWithCandies(int[] candies, int extraCandies) { + var max = candies.Max(); + return candies.Select(candies => candies + extraCandies >= max).ToList(); + } +}