You are viewing a single comment's thread. Return to all comments →
C# solution
public static int birthdayCakeCandles(List<int> candles) { candles.Sort(); int maximum = candles.Last(); int result = candles.Where(x => x == maximum).Count(); return result; }
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
C# solution