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

  1. K 次增加后的最大乘积
更多...

class  Solution
 

函数

 TEST (maximum_product_after_k_increments, case1)
 
 TEST (maximum_product_after_k_increments, case2)
 

详细描述

  1. K 次增加后的最大乘积

函数说明

◆ TEST() [1/2]

leetcode::maximum_product_after_k_increments::TEST ( maximum_product_after_k_increments  ,
case1   
)

在文件 leetcode_test.cpp2777 行定义.

2777 {
2778 vector nums = {0, 4};
2779 ASSERT_EQ(20, Solution::maximumProduct(nums, 5));
2780 }

引用了 leetcode::maximum_product_after_k_increments::Solution::maximumProduct().

◆ TEST() [2/2]

leetcode::maximum_product_after_k_increments::TEST ( maximum_product_after_k_increments  ,
case2   
)

在文件 leetcode_test.cpp2782 行定义.

2782 {
2783 vector nums = {6, 3, 3, 2};
2784 ASSERT_EQ(216, Solution::maximumProduct(nums, 2));
2785 }

引用了 leetcode::maximum_product_after_k_increments::Solution::maximumProduct().