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

LeetCode 5194. 得到目标值的最少行动次数 更多...

class  Solution
 

函数

 TEST (minimum_moves_to_reach_target_score, case1)
 
 TEST (minimum_moves_to_reach_target_score, case2)
 
 TEST (minimum_moves_to_reach_target_score, case3)
 

详细描述

LeetCode 5194. 得到目标值的最少行动次数

函数说明

◆ TEST() [1/3]

leetcode::minimum_moves_to_reach_target_score::TEST ( minimum_moves_to_reach_target_score  ,
case1   
)

在文件 leetcode_test.cpp673 行定义.

673 {
674 ASSERT_EQ(4, Solution::minMoves(5, 0));
675 }

引用了 leetcode::minimum_moves_to_reach_target_score::Solution::minMoves().

◆ TEST() [2/3]

leetcode::minimum_moves_to_reach_target_score::TEST ( minimum_moves_to_reach_target_score  ,
case2   
)

在文件 leetcode_test.cpp677 行定义.

677 {
678 ASSERT_EQ(7, Solution::minMoves(19, 2));
679 }

引用了 leetcode::minimum_moves_to_reach_target_score::Solution::minMoves().

◆ TEST() [3/3]

leetcode::minimum_moves_to_reach_target_score::TEST ( minimum_moves_to_reach_target_score  ,
case3   
)

在文件 leetcode_test.cpp681 行定义.

681 {
682 ASSERT_EQ(4, Solution::minMoves(10, 4));
683 }

引用了 leetcode::minimum_moves_to_reach_target_score::Solution::minMoves().