We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Warmup
- Birthday Cake Candles
- Discussions
Birthday Cake Candles
Birthday Cake Candles
Sort by
recency
|
5148 Discussions
|
Please Login in order to post a comment
PYTHON
Simple and elegant C# solution
`
public static int birthdayCakeCandles(List candles) { int maxh = candles.Max(); int candle_number = candles.Count( i => i==maxh); return candle_number; }
c++ solution
int birthdayCakeCandles(vector candles) { int maxHeight = candles[0]; int contador = 1;
}