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

LeetCode 6016. Excel 表中某个范围内的单元格 更多...

class  Solution
 

函数

 TEST (cells_in_a_range_on_an_excel_sheet, case1)
 
 TEST (cells_in_a_range_on_an_excel_sheet, case2)
 

详细描述

LeetCode 6016. Excel 表中某个范围内的单元格

函数说明

◆ TEST() [1/2]

leetcode::cells_in_a_range_on_an_excel_sheet::TEST ( cells_in_a_range_on_an_excel_sheet  ,
case1   
)

在文件 leetcode_test.cpp2032 行定义.

2032 {
2033 const vector<string> output = {"K1", "K2", "L1", "L2"};
2034 ASSERT_EQ(output, Solution::cellsInRange("K1:L2"));
2035 }

引用了 leetcode::cells_in_a_range_on_an_excel_sheet::Solution::cellsInRange().

◆ TEST() [2/2]

leetcode::cells_in_a_range_on_an_excel_sheet::TEST ( cells_in_a_range_on_an_excel_sheet  ,
case2   
)

在文件 leetcode_test.cpp2037 行定义.

2037 {
2038 const vector<string> output = {"A1", "B1", "C1", "D1", "E1", "F1"};
2039 ASSERT_EQ(output, Solution::cellsInRange("A1:F1"));
2040 }

引用了 leetcode::cells_in_a_range_on_an_excel_sheet::Solution::cellsInRange().