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

AcWing 51. 数字排列 更多...

class  Solution
 

函数

 TEST (acwing51, case1)
 

详细描述

AcWing 51. 数字排列

函数说明

◆ TEST()

acwing::acwing51::TEST ( acwing51  ,
case1   
)

在文件 acwing_test.cpp2439 行定义.

2439 {
2440 vector input = {1, 2, 3};
2441 const vector<vector<int>> output = {{1, 2, 3},
2442 {1, 3, 2},
2443 {2, 1, 3},
2444 {2, 3, 1},
2445 {3, 1, 2},
2446 {3, 2, 1}};
2447 ASSERT_EQ(output, Solution::permutation(input));
2448 }

引用了 acwing::acwing51::Solution::permutation().