Programming Riddle: How might you translate an Excel column name to a number?

前端 未结 28 1339
[愿得一人]
[愿得一人] 2020-11-29 22:26

I was recently asked in a job interview to resolve a programming puzzle that I thought it would be interesting to share. It\'s about translating Excel column letters to actu

28条回答
  •  温柔的废话
    2020-11-29 22:57

    This is basically a number in base 26, with the difference that the number doesn't use 0-9 and then letters but only letters.

提交回复
热议问题