You are viewing a single comment's thread. Return to all comments →
Typescript:
let candle_height = 0; let tallest_candle = 0; for (let i = 1; i < candles.length; i++) { if (candles[i] > tallest_candle) { tallest_candle = candles[i]; } } for (let i = 0; i < candles.length; i++) { if(Number(tallest_candle) == Number(candles[i])){ candle_height += 1; } } return candle_height;
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
Typescript: