Skip to content

Commit

Permalink
Birthday Cake Candles cognizance-amrita#67
Browse files Browse the repository at this point in the history
Issue cognizance-amrita#67: Solved in Ruby
  • Loading branch information
mohan-warrior authored Oct 30, 2022
1 parent d6ecefc commit 254be28
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 254be28

Please sign in to comment.