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

class  Solution
 

函数

 TEST (destroying_asteroids, case1)
 
 TEST (destroying_asteroids, case2)
 

函数说明

◆ TEST() [1/2]

leetcode::destroying_asteroids::TEST ( destroying_asteroids  ,
case1   
)

在文件 leetcode_test.cpp269 行定义.

269 {
270 int input[] = {3, 9, 19, 5, 21};
271 auto vec = vector(begin(input), end(input));
272 ASSERT_TRUE(Solution::asteroidsDestroyed(10, vec));
273 }
int vec[100010]
Definition: pat.cpp:5095

引用了 leetcode::destroying_asteroids::Solution::asteroidsDestroyed() , 以及 pat::a::a7_2::vec.

◆ TEST() [2/2]

leetcode::destroying_asteroids::TEST ( destroying_asteroids  ,
case2   
)

在文件 leetcode_test.cpp275 行定义.

275 {
276 int input[] = {4, 9, 23, 4};
277 auto vec = vector(begin(input), end(input));
278 ASSERT_FALSE(Solution::asteroidsDestroyed(5, vec));
279 }

引用了 leetcode::destroying_asteroids::Solution::asteroidsDestroyed() , 以及 pat::a::a7_2::vec.