Birthday Cake Candles

  • + 0 comments
    def birthdayCakeCandles(candles):
        m = max(candles)
        return len(list(filter(lambda i: candles[i] == m, candles)))