+ 13
Happy Number Challenge
Happy number example :-13 13= 1^2 +3^2 =10 10=1^2 + 0^2=1 another example :-28 28=2^2+8^2=68 68=6^2+8^2=100 1^2+0^2+0^2=1 a number greater than 9 when split in in its one digit number and on sum of whose square gives 1 is happy number
15 Answers
+ 21
here is my try ☺
https://code.sololearn.com/cWmiQbWSAhwY/?ref=app
+ 20
My old code, I think it is usable in response to this challenge:
https://code.sololearn.com/WfUfsKoM0JD6/?ref=app
+ 14
Shows how important Recursion is....
https://code.sololearn.com/cJEfu7z8Z0sv/?ref=app
+ 14
isThis (Ok) !!
https://code.sololearn.com/cQrj6XdvguyT/?ref=app
+ 12
Working on it. 👷
+ 12
There is another one solution.
https://code.sololearn.com/ciGXxMdZGZm8/?ref=app
+ 10
https://code.sololearn.com/ceK30ROVyq69/?ref=app
Thanks for nice challenge!
+ 8
Recursion is well suited for this
https://code.sololearn.com/cl18zUStheH7/?ref=app
+ 7
https://code.sololearn.com/caSkJW3KLcHH/?ref=app
My try. Works even for 7.
+ 4
+ 4
https://code.sololearn.com/c0d8iE476M0h/?ref=app
+ 1
Here's my try:
https://code.sololearn.com/c1igdby6129F/#py
Very nice challenge, thanks!
+ 1
https://code.sololearn.com/cebmaCTy39m7/#py
Tried to make it work for higher pow level including square, and work for all base between 2 to 16 including traditional 10 base