题目: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1B -> 2C -> 3...Z -> 26AA -> 27A
题目描述:将以下输入的字符转换成整型数,如: A -> 1 B -> 2 C -> 3 … Z -> 26 AA -> 27 AB -> 28 解题思路:本题是Leetcode#168. Excel Sheet Column Title的逆,解决的是将26进制的数字转换成10进制。 C++实现如下: class Solution {public:int titleToNum
Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1B -> 2C -> 3...Z -> 26AA -> 27AB -