Advertisement
kosievdmerwe

Untitled

Sep 13th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. class Solution:
  2.     def maxNumberOfBalloons(self, text: str) -> int:
  3.         c = Counter(text)
  4.         return min(
  5.             c['b'],
  6.             c['a'],
  7.             c['l'] // 2,
  8.             c['o'] // 2,
  9.             c['n'],
  10.         )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement