Easy · Math & Number Theory · about 5 minutes
Asked at Google, Amazon, Microsoft, Bloomberg, Meta.
Given a spreadsheet column title ("A" → 1, "Z" → 26, "AA" → 27, …), return its column number.
"A"
"Z"
"AA"