This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Birthday Cake Candles #67
Comments
I would like to do using Java. |
aman-chhetri
added a commit
to aman-chhetri/hacktoberfest
that referenced
this issue
Oct 20, 2022
I would like to solve this problem using python. |
IndexPosition
added a commit
to IndexPosition/hacktoberfest
that referenced
this issue
Oct 20, 2022
To solve this issue we can get the maximum height from the list of candles and then count how many times that maximum height occurs in the list, which was possible using a for loop.
ndrohith09
added a commit
that referenced
this issue
Oct 20, 2022
Create Birthday_Cake_Candles #67.py
I want to solve it using c++ |
samarjeetvashistha
added a commit
to samarjeetvashistha/hacktoberfest
that referenced
this issue
Oct 21, 2022
I contributed in cognizance-amrita#67
jaichiranjeeva
added a commit
to jaichiranjeeva/hacktoberfest
that referenced
this issue
Oct 24, 2022
resolves cognizance-amrita#67 Birthday_Cake_candles question in the leftover lang C.
Merged
Simple-Saviour
added a commit
to Simple-Saviour/hacktoberfest
that referenced
this issue
Oct 27, 2022
I would like to solve this problem using ruby |
mohan-warrior
added a commit
to mohan-warrior/hacktoberfest
that referenced
this issue
Oct 30, 2022
Issue cognizance-amrita#67: Solved in Ruby
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
You are in charge of the cake for a child's birthday. You have decided the cake will have one candle for each year of their total age. They will only be able to blow out the tallest of the candles. Count how many candles are tallest.
Example
The maximum height candles are units high. There are of them, so return .
Function Description
Complete the function
birthdayCakeCandles
in the editor below.birthdayCakeCandles has the following parameter(s):
Returns
Input Format
The first line contains a single integer,
n
, the size ofcandles[]
.The second line contains space-separated integers, where each integer describes the height of .
Constraints
Sample Input 0
Sample Output 0
Explanation 0
Candle heights are
[3,2,1,3]
. The tallest candles are3
units, and there are2
of them.The text was updated successfully, but these errors were encountered: