#1189
Maximum Number of Balloons
pupil · 375 · lc easy +23 · verified · 60.1% accepted · 1,875 likes · top 58%
Description
Given a string text, determine how many complete copies of the word "balloon" can be assembled using the characters from text. Each character in text may be used at most once across all copies. Return this maximum count.
Example 1:
Input: text = "nlaebolko"
Output: 1
Example 2:
Input: text = "loonbalxballpoon"
Output: 2
Example 3:
Input: text = "leetcode"
Output: 0
Code
1
2
3