Practice Maximum Number of Balloons
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible. You can use each character in text at most once. Return the maximum number of instances that can be formed. Example 1: Example 2: Example 3: Constraints: Note: This question is the same as 2287: Rearrange Characters to Make Target String.
Source: Maximum Number of Balloons on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
text = "nlaebolko"
1
# Example 2
text = "loonbalxballpoon"
2
# Example 3
text = "leetcode"
0
Constraints
Related LeetCode Problems
Practice more problems similar to Maximum Number of Balloons.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.