Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 300 Bytes

File metadata and controls

23 lines (16 loc) · 300 Bytes

Problem 171: Excel Sheet Column Number

Difficulty: Easy

Problem

Given a column title as appear in an Excel sheet, return its corresponding column number.

Example

Example 1:
Input: "A"
Output: 1

Example 2:
Input: "AB"
Output: 28

Example 3:
Input: "ZY"
Output: 701