+9

Challenge: Palindromic numbers

There is a classical conjecture of unknown origin: "Any positive integer is taken. The number is then written in reverse order; The two numbers are added together. The process is repeated with the sum number, obtaining a second sum, and proceeding in the same way until a palindrome (capicua) is achieved. The conjecture affirms that after finite number of additions will end up obtaining a palindromic number". ---- Did you enjoyed this challenge? Please give it a like..

9/13/2017 6:04:06 PM

noobcoder

15 Answers

New Answer

+14

https://code.sololearn.com/cT9td8TyojvT/?ref=app

+10

here's my try :- https://code.sololearn.com/c7bxWeu1AQ9V/?ref=app

+9

My own attempt... Some issues solved :) Python: https://code.sololearn.com/c7blN9i1049c/?ref=app Ruby: https://code.sololearn.com/c2jCQiezhBkP/#rb

+8

https://code.sololearn.com/cKw40Rkb7tkY/?ref=app

+7

It's my code... https://code.sololearn.com/ccZ019KDinIR/?ref=app

+6

Thank you for challenge :) Here's my try : https://code.sololearn.com/cSN15l5uU38J/?ref=app

+5

mine https://code.sololearn.com/Wu67IM6PfdaT/?ref=app from https://www.sololearn.com/Discuss/648908/ note: I'll adapt it feature added 👌

+5

first c++ solutions in this thread https://code.sololearn.com/cJft3Ib8zNhl/?ref=app

+5

here is mine... 🐍 https://code.sololearn.com/cko23QQoNV8E/?ref=app

+3

great challenge tnx https://code.sololearn.com/cAh22n537Xu0/?ref=app

+3

Here you go. Checks for valid input https://code.sololearn.com/cMs4I8YBYCl0/?ref=app

+2

@hatsy rei I tried input 89 in mine as well as yours outputs are different. but why?

+2

here is the smallest code😀😁😁😁😁😀😊 https://code.sololearn.com/cN8gO2qczL3y/?ref=app

+2

@sayan chandra your code doesn't work if you input palindromic numbers... 😵 Too small!! 😉

+1

ha ha... now it do works...😀😁😊