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

AcWing 53. 最小的k个数 更多...

class  Solution
 

函数

 TEST (acwing53, case1)
 

详细描述

AcWing 53. 最小的k个数

函数说明

◆ TEST()

acwing::acwing53::TEST ( acwing53  ,
case1   
)

在文件 acwing_test.cpp2416 行定义.

2416 {
2417 const vector input = {1, 2, 3, 4, 5, 6, 7, 8};
2418 const vector output = {1, 2, 3, 4};
2419 ASSERT_EQ(output, Solution::getLeastNumbers_Solution(input, 4));
2420 }

引用了 acwing::acwing53::Solution::getLeastNumbers_Solution().