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

LeetCode 1688. 比赛中的配对次数 更多...

class  Solution
 

函数

 TEST (count_of_matches_in_tournament, case1)
 
 TEST (count_of_matches_in_tournament, case2)
 

详细描述

LeetCode 1688. 比赛中的配对次数

函数说明

◆ TEST() [1/2]

leetcode::count_of_matches_in_tournament::TEST ( count_of_matches_in_tournament  ,
case1   
)

在文件 leetcode_test.cpp1048 行定义.

1048 {
1049 ASSERT_EQ(6, Solution::numberOfMatches(7));
1050 }

引用了 leetcode::count_of_matches_in_tournament::Solution::numberOfMatches().

◆ TEST() [2/2]

leetcode::count_of_matches_in_tournament::TEST ( count_of_matches_in_tournament  ,
case2   
)

在文件 leetcode_test.cpp1052 行定义.

1052 {
1053 ASSERT_EQ(13, Solution::numberOfMatches(14));
1054 }

引用了 leetcode::count_of_matches_in_tournament::Solution::numberOfMatches().