Tallest Candles

On the cake, only the tallest candles can be blown out, so first you need to know the maximum height. The function birthday_cake_candles receives a list of candle heights candles. Return how many candles have a height equal to the maximum value in the list.

Примеры

Ввод
[3, 2, 1, 3]
Вывод
2
Ввод
[4, 4, 1, 3]
Вывод
2
Ввод
[1]
Вывод
1

Нужно реализовать

def birthday_cake_candles(candles: list[int]) -> int:

Теги

arraymath
PostgreSQLv16

Aquí aparecerá el resultado de la ejecución del código

Visible tests
1
Input
[3,2,1,3]
Expected2
2
Input
[4,4,1,3]
Expected2
3
Input
[1]
Expected1
4
Input
[5,5,5,5]
Expected4
5
Input
[1,2,3,4,5]
Expected1
6
Input
[1,1]
Expected2
Focus radio
Paused · SomaFM · Fluid