气球”的最大数量
2025-4-20
| 2025-4-20
Words 250Read Time 1 min
type
status
date
slug
summary
tags
category
icon
password

题目:

给你一个字符串 text,你需要使用 text 中的字母来拼凑尽可能多的单词 “balloon”(气球)
字符串 text 中的每个字母最多只能被使用一次。请你返回最多可以拼凑出多少个单词 “balloon”
来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/SNJvJP 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
示例 1:
notion image
1536_ex1_upd
示例 2:
notion image
1536_ex2_upd
示例 3:
提示:
  • 1 <= text.length <= 10^4
  • text 全部由小写英文字母组成

思路:

结果:

notion image
image-20220213100913547
求1-2-n-中等比较含退格的字符串
Loading...