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.

AnswerBot
4mo
Convert Excel column title to corresponding column number.
Iterate through the characters in the input string from right to left
Calculate the corresponding value of each character based on its position...read more
Help your peers!
Add answer anonymously...
Top Senior Software Engineer Interview Questions Asked at JPMorgan Chase & Co.
Q. What challenges have you faced as a data modeler, and how did you solve them?
Q. What types of data models have you worked with?
Q. Implement the Factory design pattern.
Interview Questions Asked to Senior Software Engineer at Other Companies
Top Skill-Based Questions for JPMorgan Chase & Co. Senior Software Engineer
Web Development Interview Questions and Answers
250 Questions
Data Structures Interview Questions and Answers
250 Questions
Java Interview Questions and Answers
250 Questions
Algorithms Interview Questions and Answers
250 Questions
Software Development Interview Questions and Answers
250 Questions
SQL Interview Questions and Answers
250 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

