Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def maxNumberOfBalloons(self, text: str) -> int:
- c = Counter(text)
- return min(
- c['b'],
- c['a'],
- c['l'] // 2,
- c['o'] // 2,
- c['n'],
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement