#include <lintcode.h>
|
static string | convert (long long index) |
|
◆ convert()
string lintcode::convert::Solution::convert |
( |
long long |
index | ) |
|
|
static |
- 参数
-
index | the index to be converted |
- 返回
- : return the string after convert.
在文件 lintcode.cpp 第 213 行定义.
214 unsigned long long prefix = index / 702 + 1;
215 if(index % 702 == 0) {
226 ch =
static_cast<char>(index % 26 + 63);
229 ch =
static_cast<char>(index % 26 + 64);
231 if(ch ==
'@' && index >= 26) {
234 }
else if(ch ==
'?' && index >= 26) {
238 if(
'A' <= ch && ch <=
'Z') {
239 ans.insert(0, 1, ch);
243 return to_string(prefix) + ans;
被这些函数引用 lintcode::convert::TEST().
该类的文档由以下文件生成: