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

  1. 花园的最大总美丽值
更多...

class  Solution
 

函数

 TEST (maximum_total_beauty_of_the_gardens, case1)
 
 TEST (maximum_total_beauty_of_the_gardens, case2)
 
 TEST (maximum_total_beauty_of_the_gardens, case3)
 

详细描述

  1. 花园的最大总美丽值

函数说明

◆ TEST() [1/3]

leetcode::maximum_total_beauty_of_the_gardens::TEST ( maximum_total_beauty_of_the_gardens  ,
case1   
)

在文件 leetcode_test.cpp2789 行定义.

2789 {
2790 vector flowers = {1, 3, 1, 1};
2791 ASSERT_EQ(14, Solution::maximumBeauty(flowers, 7, 6, 12, 1));
2792 }

引用了 leetcode::maximum_total_beauty_of_the_gardens::Solution::maximumBeauty().

◆ TEST() [2/3]

leetcode::maximum_total_beauty_of_the_gardens::TEST ( maximum_total_beauty_of_the_gardens  ,
case2   
)

在文件 leetcode_test.cpp2794 行定义.

2794 {
2795 vector flowers = {2, 4, 5, 3};
2796 ASSERT_EQ(30, Solution::maximumBeauty(flowers, 10, 5, 2, 6));
2797 }

引用了 leetcode::maximum_total_beauty_of_the_gardens::Solution::maximumBeauty().

◆ TEST() [3/3]

leetcode::maximum_total_beauty_of_the_gardens::TEST ( maximum_total_beauty_of_the_gardens  ,
case3   
)

在文件 leetcode_test.cpp2799 行定义.

2799 {
2800 vector flowers = {19, 17, 6, 9, 19};
2801 ASSERT_EQ(104, Solution::maximumBeauty(flowers, 24, 10, 17, 4));
2802 }

引用了 leetcode::maximum_total_beauty_of_the_gardens::Solution::maximumBeauty().