Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TARGET = "balloon"
- class Solution:
- def maxNumberOfBalloons(self, text: str) -> int:
- c = Counter(text)
- return min(
- c[t_char] // t_cnt
- for t_char, t_cnt in Counter(TARGET).items()
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement