Skip to content

Instantly share code, notes, and snippets.

@codeperfectplus
Created September 16, 2023 13:35
Show Gist options
  • Save codeperfectplus/0dd4a3ccba929b907806616d56ead3c7 to your computer and use it in GitHub Desktop.
Save codeperfectplus/0dd4a3ccba929b907806616d56ead3c7 to your computer and use it in GitHub Desktop.
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