problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::maximum_number_of_balloons 命名空间参考

LeetCode 1189. “气球” 的最大数量 更多...

class  Solution
 

函数

 TEST (maximum_number_of_balloons, case1)
 
 TEST (maximum_number_of_balloons, case2)
 
 TEST (maximum_number_of_balloons, case3)
 

详细描述

LeetCode 1189. “气球” 的最大数量

函数说明

◆ TEST() [1/3]

leetcode::maximum_number_of_balloons::TEST ( maximum_number_of_balloons  ,
case1   
)

在文件 leetcode_test.cpp1441 行定义.

1441 {
1442 ASSERT_EQ(1, Solution::maxNumberOfBalloons("nlaebolko"));
1443 }

引用了 leetcode::maximum_number_of_balloons::Solution::maxNumberOfBalloons().

◆ TEST() [2/3]

leetcode::maximum_number_of_balloons::TEST ( maximum_number_of_balloons  ,
case2   
)

在文件 leetcode_test.cpp1445 行定义.

1445 {
1446 ASSERT_EQ(2, Solution::maxNumberOfBalloons("loonbalxballpoon"));
1447 }

引用了 leetcode::maximum_number_of_balloons::Solution::maxNumberOfBalloons().

◆ TEST() [3/3]

leetcode::maximum_number_of_balloons::TEST ( maximum_number_of_balloons  ,
case3   
)

在文件 leetcode_test.cpp1449 行定义.

1449 {
1450 ASSERT_EQ(0, Solution::maxNumberOfBalloons("leetcode"));
1451 }

引用了 leetcode::maximum_number_of_balloons::Solution::maxNumberOfBalloons().