Maximum Number of Balloons — LeetCode

Thank you for visiting this post! Be sure to also take a look at my other work on LinkedIn, Github, and my website.

Problem

Please click the link below to view the Problem Statement

Solution

The static function Math.min() returns the lowest-valued number passed into it, or NaN if any parameter isn't a number and can't be converted into one.

— MDN Web Docs

I put comments next to each line of code in the gist above to explain what is happening step by step.

Conclusion

Thank you so much for stopping by! Stay tuned for more Algorithm Content. Java Style!

Please checkout my online portfolio and feel free to connect with me on Linkedin!

Sources:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min

--

--

--

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

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
Stephanie Segura

Stephanie Segura

More from Medium

What is Reactive Programming? | Interview basics

How to check if the concatenation of two substrings is a palindrome

DSA #1: Big O notation Time/Space complexity

Two Sorting Algorithms You Must Know About — Quick Sort and Merge Sort