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 }
static bool stoneGameIX(vector< int > &stones)

引用了 leetcode::stone_game_ix::Solution::stoneGameIX().

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

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

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

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

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