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
|
5272 Discussions
|
Please Login in order to post a comment
Here is my c++ solution, you can watch the video explanation here : https://youtu.be/zcWbM-aaopc
Solution in Kotlin -
**1.with Extension function - **
**2. without Extension function - **
def birthdayCakeCandles(candles): max_candles = max(candles) return candles.count(max_candles)
This will reduce the time limit