Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #140 from mohan-warrior/main
Browse files Browse the repository at this point in the history
Birthday Cake Candles #67
  • Loading branch information
thekavikumar authored Oct 30, 2022
2 parents 38214e0 + 254be28 commit d014190
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Ruby/Birthday_Cake_Candles_#67.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def birthdayCakeCandles(candles)
candles.count(candles.max)
end
T = gets.to_i
candles = gets.rstrip.split(' ').map(&:to_i)
result = birthdayCakeCandles candles
puts result

0 comments on commit d014190

Please sign in to comment.