Tap here to switch tabs
Problem
Submissions

Problem: Excel Sheet Column Number

med
30 min
Try to solve the Excel Sheet Column Number problem.

Statement

Given a string columnTitle representing an Excel sheet column label, return the corresponding column number.

Excel column labels use a base 2626 system with uppercase letters, where "A" maps to 11, "B" maps to 22, …, and "Z" maps to 2626. After "Z", the labels continue as "AA", "AB", and so on.

Constraints:

  • 11 \leq columnTitle.length 7\leq 7

  • columnTitle consists only of uppercase English letters.

  • columnTitle is in the range ["A", "FXSHRXW"].

Unlock AI-Powered LearningUpgrade to smarter learning with instant explanations of Ask Agent, Personalized Interview Prep, Real-World Projects, 3 AI Mock Interviews per month, and Personalized Paths
Tap here to switch tabs
Problem
Submissions

Problem: Excel Sheet Column Number

med
30 min
Try to solve the Excel Sheet Column Number problem.

Statement

Given a string columnTitle representing an Excel sheet column label, return the corresponding column number.

Excel column labels use a base 2626 system with uppercase letters, where "A" maps to 11, "B" maps to 22, …, and "Z" maps to 2626. After "Z", the labels continue as "AA", "AB", and so on.

Constraints:

  • 11 \leq columnTitle.length 7\leq 7

  • columnTitle consists only of uppercase English letters.

  • columnTitle is in the range ["A", "FXSHRXW"].

Unlock AI-Powered LearningUpgrade to smarter learning with instant explanations of Ask Agent, Personalized Interview Prep, Real-World Projects, 3 AI Mock Interviews per month, and Personalized Paths