# LeetCode:Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet.

For example:

    1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB 

class Solution {
public:
string convertToTitle(int n) {
if(n < 1) return "";
else{
int cnt = 0;
string  intToString ="";
while(n != 0){
intToString = char((n - 1) % 26 + 'A') + intToString;
n = (n - 1) / 26;
}
return intToString;
}
}
};

#### 168. Excel Sheet Column Title Leetcode Python

2015-02-15 03:09:32

#### [LeetCode 168] Excel Sheet Column Title

2015-08-25 14:58:32

#### [LeetCode-171]Excel Sheet Column Number(java)

2016-10-08 21:14:02

#### 168. Excel Sheet Column Title [easy] (Python)

2016-05-14 16:22:17

#### LeetCode(171) Excel Sheet Column Number

2015-01-02 01:14:49

#### LeetCode 168 Excel Sheet Column Title（Excel的列向表标题）

2016-01-11 19:57:40

#### 171. Excel Sheet Column Number.py

2018年03月02日 335B 下载

#### [LeetCode]168.Excel Sheet Column Title

2015-01-29 15:36:17

#### 171. Excel Sheet Column Number Leetcode Python

2015-02-15 01:52:25

#### 168. Excel Sheet Column Title Excel表列名 和 171. Excel Sheet Column Number

2016-06-27 10:40:17