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.


Please click the link below to view the Problem Statement


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.


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!





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