InterviewBit - Excel Column Title  

by ne on 2021-09-22 under Algo

This problem is a property of InterviewBit (

Full details of the question, and if you want to try it out yourself, proceed to interviewbit :

Here's the implementation, this method will return column title for the given column number


  private static String rec(int col){
          return ""+(char)(64+col);
            return rec((col/26)-1) +(char)(64+26);
          } else         
          return rec(col/26)+(char)(64+(col%26));

Happy Coding !