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

LeetCode 2029. 石子游戏 IX 更多...

class  Solution
 

函数

 TEST (stone_game_ix, case1)
 
 TEST (stone_game_ix, case2)
 
 TEST (stone_game_ix, case3)
 
 TEST (stone_game_ix, case4)
 
 TEST (stone_game_ix, case5)
 
 TEST (stone_game_ix, case6)
 

详细描述

LeetCode 2029. 石子游戏 IX

函数说明

◆ TEST() [1/6]

leetcode::stone_game_ix::TEST ( stone_game_ix  ,
case1   
)

在文件 leetcode_test.cpp755 行定义.

755 {
756 int input[] = {2, 1};
757 auto vec = vector(begin(input), end(input));
758 ASSERT_TRUE(Solution::stoneGameIX(vec));
759 }
int vec[100010]
Definition: pat.cpp:5095

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

◆ TEST() [2/6]

leetcode::stone_game_ix::TEST ( stone_game_ix  ,
case2   
)

在文件 leetcode_test.cpp761 行定义.

761 {
762 int input[] = {2};
763 auto vec = vector(begin(input), end(input));
764 ASSERT_FALSE(Solution::stoneGameIX(vec));
765 }

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

◆ TEST() [3/6]

leetcode::stone_game_ix::TEST ( stone_game_ix  ,
case3   
)

在文件 leetcode_test.cpp767 行定义.

767 {
768 int input[] = {5, 1, 2, 4, 3};
769 auto vec = vector(begin(input), end(input));
770 ASSERT_FALSE(Solution::stoneGameIX(vec));
771 }

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

◆ TEST() [4/6]

leetcode::stone_game_ix::TEST ( stone_game_ix  ,
case4   
)

在文件 leetcode_test.cpp773 行定义.

773 {
774 int input[] = {3, 4, 6, 6, 8, 9, 2, 4, 5};
775 auto vec = vector(begin(input), end(input));
776 ASSERT_TRUE(Solution::stoneGameIX(vec));
777 }

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

◆ TEST() [5/6]

leetcode::stone_game_ix::TEST ( stone_game_ix  ,
case5   
)

在文件 leetcode_test.cpp779 行定义.

779 {
780 int input[] = {2, 3, 7, 9, 4, 32, 2, 5, 8, 2, 6, 8, 3, 2, 6, 8, 3, 2, 5, 7, 8, 3, 5, 67, 8};
781 auto vec = vector(begin(input), end(input));
782 ASSERT_TRUE(Solution::stoneGameIX(vec));
783 }

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

◆ TEST() [6/6]

leetcode::stone_game_ix::TEST ( stone_game_ix  ,
case6   
)

在文件 leetcode_test.cpp785 行定义.

785 {
786 int input[] = {15, 20, 10, 13, 14, 15, 5, 2, 3};
787 auto vec = vector(begin(input), end(input));
788 ASSERT_FALSE(Solution::stoneGameIX(vec));
789 }

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