Skip to content

Commit 51e9c0b

Browse files
committed
Adding readme file
1 parent f46021e commit 51e9c0b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

168-ExcelSheetColumnTitle/README.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet.
2+
3+
For example:
4+
5+
A -> 1
6+
B -> 2
7+
C -> 3
8+
...
9+
Z -> 26
10+
AA -> 27
11+
AB -> 28
12+
...
13+
14+
15+
 
16+
Example 1:
17+
18+
Input: columnNumber = 1
19+
Output: "A"
20+
21+
22+
Example 2:
23+
24+
Input: columnNumber = 28
25+
Output: "AB"
26+
27+
28+
Example 3:
29+
30+
Input: columnNumber = 701
31+
Output: "ZY"
32+
33+
34+
 
35+
Constraints:
36+
37+
38+
1 <= columnNumber <= 231 - 1
39+

0 commit comments

Comments
 (0)