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

  1. 两个行程编码数组的积
更多...

class  Solution
 

函数

 TEST (product_of_two_run_length_encoded_arrays, case1)
 
 TEST (product_of_two_run_length_encoded_arrays, case2)
 

详细描述

  1. 两个行程编码数组的积

函数说明

◆ TEST() [1/2]

leetcode::product_of_two_run_length_encoded_arrays::TEST ( product_of_two_run_length_encoded_arrays  ,
case1   
)

在文件 leetcode_test.cpp3620 行定义.

3620 {
3621 vector<vector<int>> encoded1 = {{1, 3}, {2, 3}};
3622 vector<vector<int>> encoded2 = {{6, 3}, {3, 3}};
3623 const vector<vector<int>> output = {{6, 6}};
3624 ASSERT_EQ(output, Solution::findRLEArray(encoded1, encoded2));
3625 }

引用了 leetcode::product_of_two_run_length_encoded_arrays::Solution::findRLEArray().

◆ TEST() [2/2]

leetcode::product_of_two_run_length_encoded_arrays::TEST ( product_of_two_run_length_encoded_arrays  ,
case2   
)

在文件 leetcode_test.cpp3627 行定义.

3627 {
3628 vector<vector<int>> encoded1 = {{1, 3}, {2, 1}, {3, 2}};
3629 vector<vector<int>> encoded2 = {{2, 3}, {3, 3}};
3630 const vector<vector<int>> output = {{2, 3}, {6, 1}, {9, 2}};
3631 ASSERT_EQ(output, Solution::findRLEArray(encoded1, encoded2));
3632 }

引用了 leetcode::product_of_two_run_length_encoded_arrays::Solution::findRLEArray().