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 }
static bool asteroidsDestroyed(int mass, vector< int > &asteroids)

引用了 leetcode::destroying_asteroids::Solution::asteroidsDestroyed().

◆ 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().