Skip to content

Commit 94d9dba

Browse files
author
wakidurrahman
committed
feat: updated
1 parent 9b41450 commit 94d9dba

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/hackerrank/problem-solving/algorithms-004-010.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ function staircase(n) {
129129
staircase(6);
130130

131131
/**
132+
* 008
132133
* Given five positive integers,
133134
* find the minimum and maximum values that can be calculated by summing exactly four of the five integers.
134135
* Then print the respective minimum and maximum values as a single line of two space-separated long integers.
@@ -165,3 +166,19 @@ function miniMaxSum(arr) {
165166

166167
const miniMaxSumArray = [1, 2, 3, 7, 5, 9];
167168
miniMaxSum(miniMaxSumArray);
169+
170+
/**
171+
* 008
172+
* You are in charge of the cake for a child's birthday.
173+
* You have decided the cake will have one candle for each year of their total age.
174+
* They will only be able to blow out the tallest of the candles.
175+
* Count how many candles are tallest.
176+
*
177+
* Complete the 'birthdayCakeCandles' function below.
178+
* The function is expected to return an INTEGER.
179+
* The function accepts INTEGER_ARRAY candles as parameter.
180+
*/
181+
182+
function birthdayCakeCandles(candles) {
183+
// Write your code here
184+
}

0 commit comments

Comments
 (0)