Excel Sheet Column Number Problem

Excel Sheet Column Number Problem — ExecCode Easy DSA Practice

Solve the Excel Sheet Column Number problem on ExecCode. Free online easy DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Given a string columnTitle that represents the column title as appears in an Excel sheet, return its corresponding column number.

Examples

Input columnTitle = "AB"; Output 28

Constraints

1 ≤ columnTitle.length ≤ 7 columnTitle consists only of uppercase English letters

Practice Excel Sheet Column Number free on ExecCode. Browse DSA problems, topic map, and placement guides.