Excel Column Number Conversion
Given a column title as it appears in an Excel sheet, your task is to return its corresponding column number.
Example:
Input:
S = "AB"
Output:
28
Explanation:
The sequence is as follows:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
Constraints:
- 1 <= |S| <= 10
- S consists only of uppercase English Alphabet letters
Note:
Consider implementing the function to convert the Excel column title to a number. You do not have to handle input/output explicitly.
Be the first one to answer
Add answer anonymously...
Top UST Senior Software Engineer interview questions & answers
Popular interview questions of Senior Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app