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
|
5381 Discussions
|
Please Login in order to post a comment
public static int birthdayCakeCandles(List candles) { // Write your code here candles.sort((a,b)->b-a); Integer i=candles.get(0); return Collections.frequency(candles, i);
I like how birthday cake candles instantly make any celebration feel special. I recently helped decorate a family cake with simple candles and a warm blessing, it made the moment more meaningful. Adding Short Marathi Birthday Lines beside the cake can blend tradition with joy beautifully.
public static int birthdayCakeCandles(List candles) {
}
def birthdayCakeCandles(candles): return candles.count(max(candles))
For Python3 Platform