Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb76212e

Browse files
refactor 1189
1 parent730869d commitb76212e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

‎src/main/java/com/fishercoder/solutions/_1189.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
packagecom.fishercoder.solutions;
22

3-
/**
4-
* 1189. Maximum Number of Balloons
5-
*
6-
* Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible.
7-
* You can use each character in text at most once. Return the maximum number of instances that can be formed.
8-
*
9-
* Example 1:
10-
* Input: text = "nlaebolko"
11-
* Output: 1
12-
*
13-
* Example 2:
14-
* Input: text = "loonbalxballpoon"
15-
* Output: 2
16-
*
17-
* Example 3:
18-
* Input: text = "leetcode"
19-
* Output: 0
20-
*
21-
* Constraints:
22-
* 1 <= text.length <= 10^4
23-
* text consists of lower case English letters only.
24-
* */
253
publicclass_1189 {
264
publicstaticclassSolution1 {
275
publicintmaxNumberOfBalloons(Stringtext) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp