+ 6

Challenge for Nerds!!!

Use C++ or Java to have an integer input (base 10) and convert it to base 26. For example, 28=bc, 25=z. Binary is 0’s and 1’s, meaning that it is base2. Base 26 means a=0, b=1, ... z=25 ba=26 and it is like 10. Comment links to your code.

11th Dec 2017, 1:10 AM
Jacob Pembleton
Jacob Pembleton - avatar
6 Respostas
+ 1
Source base from 2 to 36. Result base from 2 to 36. https://code.sololearn.com/csm9e4p4r307/?ref=app
19th Dec 2017, 1:55 PM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar
+ 6
https://code.sololearn.com/cOKVFvr6uUji/?ref=app
15th Sep 2018, 5:33 AM
Amadeus
Amadeus - avatar
12th Dec 2017, 2:02 PM
DAB
DAB - avatar
+ 2
there we go, i used 0-P as characters to represent 0-25 https://code.sololearn.com/cU641R0tR7iG/?ref=app
11th Dec 2017, 9:11 AM
Jeremy
Jeremy - avatar
+ 2
I made mine with Python. And I added the reverse function in the end of the code, so you can give a string of alphabetic letters (base26) to get the corresponding base 10 number. Can be used to encrypt a name for ex. https://code.sololearn.com/cScAi38qTuvh/#py Thanks Jacob for the challenge !
12th Dec 2017, 2:10 AM
Cépagrave
Cépagrave - avatar