Excel Sheet Column Number Solutions in GoNumber 171Difficulty EasyAcceptance 56.0%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func titleToNumber(s string) int { val, res := 0, 0 for i := 0; i < len(s); i++ { val = int(s[i] - 'A' + 1) res = res*26 + val } return res}package leetcode func titleToNumber(s string) int { val, res := 0, 0 for i := 0; i < len(s); i++ { val = int(s[i] - 'A' + 1) res = res*26 + val } return res }