C# Solution - 3line - O(n)


  • 0
    V
            int columunNumber = 0;
            for(int i = 0 ; i < s.Length; i++){
                columunNumber = columunNumber * 26 + (s[i] - 64) ;
            }
            return columunNumber;
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.