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

class  Solution
 

函数

 TEST (excel_sheet_column_title, case1)
 
 TEST (excel_sheet_column_title, case2)
 
 TEST (excel_sheet_column_title, case3)
 
 TEST (excel_sheet_column_title, case4)
 
 TEST (excel_sheet_column_title, case5)
 

函数说明

◆ TEST() [1/5]

leetcode::excel_sheet_column_title::TEST ( excel_sheet_column_title  ,
case1   
)

在文件 leetcode_test.cpp10 行定义.

10 {
11 ASSERT_EQ(std::string("A"), Solution::convertToTitle(1));
12 }

引用了 leetcode::excel_sheet_column_title::Solution::convertToTitle().

◆ TEST() [2/5]

leetcode::excel_sheet_column_title::TEST ( excel_sheet_column_title  ,
case2   
)

在文件 leetcode_test.cpp14 行定义.

14 {
15 ASSERT_EQ(std::string("AB"), Solution::convertToTitle(28));
16 }

引用了 leetcode::excel_sheet_column_title::Solution::convertToTitle().

◆ TEST() [3/5]

leetcode::excel_sheet_column_title::TEST ( excel_sheet_column_title  ,
case3   
)

在文件 leetcode_test.cpp18 行定义.

18 {
19 ASSERT_EQ(std::string("ZY"), Solution::convertToTitle(701));
20 }

引用了 leetcode::excel_sheet_column_title::Solution::convertToTitle().

◆ TEST() [4/5]

leetcode::excel_sheet_column_title::TEST ( excel_sheet_column_title  ,
case4   
)

在文件 leetcode_test.cpp22 行定义.

22 {
23 ASSERT_EQ(std::string("FXSHRXW"), Solution::convertToTitle(2147483647));
24 }

引用了 leetcode::excel_sheet_column_title::Solution::convertToTitle().

◆ TEST() [5/5]

leetcode::excel_sheet_column_title::TEST ( excel_sheet_column_title  ,
case5   
)

在文件 leetcode_test.cpp26 行定义.

26 {
27 ASSERT_EQ(std::string("AZ"), Solution::convertToTitle(52));
28 }

引用了 leetcode::excel_sheet_column_title::Solution::convertToTitle().