Birthday Cake Candles Solution in Javascript

  • int candles[n]: the candle heights
  • int: the number of candles that are tallest
  • 1 ≤ n ≤ 10⁵
  • 1 ≤ candles[i] ≤ 10⁷

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Create an eCommerce website with SailsJs — Shopping Cart

Most used JavaScript Array Methods You Should Know

Exporting audio sprites for PixiJS with REAPER

Gradle + JavaFX + JFoenix + Intellij IDEA: Part 1

Thoughts On Palindrome Algorithms

Micro-frontends: A new way to organize your React Components

State and Props in React

React Native Loading Animation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Travis Lee

Travis Lee

More from Medium

JavaScript, Version controlling and NoSQL

JavaScript, Version Controlling & NoSQL

CS373 Spring 2022: Kyle Kamka

How to make Modal Window using Javascript (Manipulating DOM HTML)