Excel Column Number

You have been given a column title as appears in an Excel sheet, return its corresponding column number.

CodingNinjas
author
2y
  • Initialize final_ans = 0. Take one character at a time (curr_char = st[i]) and (final_ans = final_ans*26 + curr_char). It is just like binary to decimal conversion. I solved this question very quickly...read more
CodingNinjas
author
2y

The approach which can be used here is similiar to binary to decimal conversion.Suppose we have given string : ABC, the formula is 26 * 26* 1 + 26*2 + 3,so instead of 2 base here is 26. So just traver...read more

CodingNinjas
author
2y
Base 26 Conversion

The process is very much similar to binary to decimal conversion. In this case, the base of the given system is to be taken as 26. Also, in this system 1 is represented as ‘A’, 2 is ...read more

Add answer anonymously...
Oracle Software Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter