Ładowanie zadania…
Excel columns are labeled with letters instead of plain numbers: A, B, Z, then AA, AB, and so on. Given a column title column_title, return its position number. Treat the title like a special letter-based number system.
"A"1"AB"28"ZY"701def title_to_number(column_title: str) -> int:
Zaloguj się, aby zobaczyć historię rozwiązań
Zaloguj sięZaloguj się, aby korzystać z Mentora AI
Zaloguj sięThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.