#include <leetcode.h>
◆ convertToTitle()
string leetcode::excel_sheet_column_title::Solution::convertToTitle |
( |
int |
columnNumber | ) |
|
|
static |
在文件 leetcode.cpp 第 119 行定义.
122 while(columnNumber != 0) {
125 ch =
static_cast<char>(columnNumber % 26 + 63);
128 ch =
static_cast<char>(columnNumber % 26 + 64);
130 if(ch ==
'@' && columnNumber >= 26) {
133 }
else if(ch ==
'?' && columnNumber >= 26) {
137 if(
'A' <= ch && ch <=
'Z') {
138 ans.insert(0, 1, ch);
被这些函数引用 leetcode::excel_sheet_column_title::TEST().
该类的文档由以下文件生成: