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

LeetCode 1219. Path with Maximum Gold 更多...

class  Solution
 

函数

 TEST (path_with_maximum_gold, case1)
 
 TEST (path_with_maximum_gold, case2)
 

详细描述

LeetCode 1219. Path with Maximum Gold

函数说明

◆ TEST() [1/2]

leetcode::path_with_maximum_gold::TEST ( path_with_maximum_gold  ,
case1   
)

在文件 leetcode_test.cpp1265 行定义.

1265 {
1266 vector<vector<int>> input = {{0, 6, 0}, {5, 8, 7}, {0, 9, 0}};
1267 ASSERT_EQ(24, Solution::getMaximumGold(input));
1268 }

引用了 leetcode::path_with_maximum_gold::Solution::getMaximumGold().

◆ TEST() [2/2]

leetcode::path_with_maximum_gold::TEST ( path_with_maximum_gold  ,
case2   
)

在文件 leetcode_test.cpp1270 行定义.

1270 {
1271 vector<vector<int>> input = {{1, 0, 7}, {2, 0, 6}, {3, 4, 5}, {0, 3, 0}, {9, 0, 20}};
1272 ASSERT_EQ(28, Solution::getMaximumGold(input));
1273 }

引用了 leetcode::path_with_maximum_gold::Solution::getMaximumGold().