char *convertToTitle(int n) { char num[20];int k = 0; while(n){ num[k++] = (n-1)%26 + 'A'; n = (n-1)/26; } for(int i = 0;i < k /2; i++){ char temp = num[i]; num[i] = num[k-i-1]; num[k-i-1] = temp; } num[k] = '
char *convertToTitle(int n) { char num[20];int k = 0; while(n){ num[k++] = (n-1)%26 + 'A'; n = (n-1)/26; } for(int i = 0;i < k /2; i++){ char temp = num[i]; num[i] = num[k-i-1]; num[k-i-1] = temp; } num[k] = '