Created
September 16, 2023 13:35
-
-
Save codeperfectplus/0dd4a3ccba929b907806616d56ead3c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def birthdayCakeCandles(ar): | |
count = 0 | |
maxHeight = max(ar) | |
for i in ar: | |
if i == maxHeight: | |
count += 1 | |
return count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment