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

LeetCode 798. Smallest Rotation with Highest Score 更多...

class  Solution
 

函数

 TEST (smallest_rotation_with_highest_score, case1)
 
 TEST (smallest_rotation_with_highest_score, case2)
 

详细描述

LeetCode 798. Smallest Rotation with Highest Score

函数说明

◆ TEST() [1/2]

leetcode::smallest_rotation_with_highest_score::TEST ( smallest_rotation_with_highest_score  ,
case1   
)

在文件 leetcode_test.cpp2135 行定义.

2135 {
2136 vector input = {2, 3, 1, 4, 0};
2137 ASSERT_EQ(3, Solution::bestRotation(input));
2138 }

引用了 leetcode::smallest_rotation_with_highest_score::Solution::bestRotation().

◆ TEST() [2/2]

leetcode::smallest_rotation_with_highest_score::TEST ( smallest_rotation_with_highest_score  ,
case2   
)

在文件 leetcode_test.cpp2140 行定义.

2140 {
2141 vector input = {1, 3, 0, 2, 4};
2142 ASSERT_EQ(0, Solution::bestRotation(input));
2143 }

引用了 leetcode::smallest_rotation_with_highest_score::Solution::bestRotation().