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

LeetCode 1984. Minimum Difference Between Highest and Lowest of K Scores 更多...

class  Solution
 

函数

 TEST (minimum_difference_between_highest_and_lowest_of_k_scores, case1)
 
 TEST (minimum_difference_between_highest_and_lowest_of_k_scores, case2)
 

详细描述

LeetCode 1984. Minimum Difference Between Highest and Lowest of K Scores

函数说明

◆ TEST() [1/2]

leetcode::minimum_difference_between_highest_and_lowest_of_k_scores::TEST ( minimum_difference_between_highest_and_lowest_of_k_scores  ,
case1   
)

在文件 leetcode_test.cpp1417 行定义.

1417 {
1418 vector input = {90};
1419 ASSERT_EQ(0, Solution::minimumDifference(input, 1));
1420 }

引用了 leetcode::minimum_difference_between_highest_and_lowest_of_k_scores::Solution::minimumDifference().

◆ TEST() [2/2]

leetcode::minimum_difference_between_highest_and_lowest_of_k_scores::TEST ( minimum_difference_between_highest_and_lowest_of_k_scores  ,
case2   
)

在文件 leetcode_test.cpp1422 行定义.

1422 {
1423 vector input = {9, 4, 1, 7};
1424 ASSERT_EQ(2, Solution::minimumDifference(input, 2));
1425 }

引用了 leetcode::minimum_difference_between_highest_and_lowest_of_k_scores::Solution::minimumDifference().