171_Excel Sheet Column Number
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...Input: "A"
Output: 1Input: "AB"
Output: 28Input: "ZY"
Output: 701Solution:
Code 1: Iterative approach
Code 2: Recursive approach
Last updated