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

  1. Array of Doubled Pairs
更多...

class  Solution
 

函数

 TEST (array_of_doubled_pairs, case1)
 
 TEST (array_of_doubled_pairs, case2)
 

详细描述

  1. Array of Doubled Pairs

函数说明

◆ TEST() [1/2]

leetcode::array_of_doubled_pairs::TEST ( array_of_doubled_pairs  ,
case1   
)

在文件 leetcode_test.cpp2597 行定义.

2597 {
2598 vector arr = {3, 1, 3, 6};
2599 ASSERT_FALSE(Solution::canReorderDoubled(arr));
2600 }

引用了 leetcode::array_of_doubled_pairs::Solution::canReorderDoubled().

◆ TEST() [2/2]

leetcode::array_of_doubled_pairs::TEST ( array_of_doubled_pairs  ,
case2   
)

在文件 leetcode_test.cpp2602 行定义.

2602 {
2603 vector arr = {2, 1, 2, 6};
2604 ASSERT_FALSE(Solution::canReorderDoubled(arr));
2605 }

引用了 leetcode::array_of_doubled_pairs::Solution::canReorderDoubled().