+ 20

# 🏁[Challenge: Binary Palindromes]🏁

Find all numbers till a given n whose binary string is a palindrome. Example: 3 --> 11 5 --> 101 ... Run the code for more examples, any language is welcome. Happy coding😊 https://code.sololearn.com/cw7fCNo6ARLE/?ref=app

12th Oct 2017, 6:32 AM
Jonas Schröter
+ 18
12th Oct 2017, 7:01 AM
Krishna Teja Yeluripati
12th Oct 2017, 1:21 PM
m abrate
12th Oct 2017, 5:21 PM
Vukan
12th Oct 2017, 8:40 AM
noobcøder
13th Oct 2017, 2:08 AM
David Ashton
+ 10
https://code.sololearn.com/cWzApH7G2f5S/?ref=app Did a little extension
12th Oct 2017, 6:50 AM
👑 Prometheus 🇸🇬
+ 8
I am using the luxury of Python's inbuilt functions
12th Oct 2017, 6:56 AM
👑 Prometheus 🇸🇬
+ 8
Yay for once I did something ahead of you sir!
12th Oct 2017, 7:02 AM
👑 Prometheus 🇸🇬
12th Oct 2017, 12:46 PM
LukArToDo
12th Oct 2017, 10:52 AM
Alexey Zlo
+ 7
https://code.sololearn.com/cbe7prt0qK3k/?ref=app
13th Oct 2017, 12:39 PM
Ekansh
+ 6
Number.prototype.pd = function() { return [...Array(+this).keys()].map(v=> v.toString(2)).filter(c=> c==c.split('').reverse().join('')); } https://code.sololearn.com/WBo2vfcCk1B1/?ref=app
12th Oct 2017, 10:23 AM
Calviղ
12th Oct 2017, 12:14 PM
sayan chandra
12th Oct 2017, 12:21 PM
Stepan Bauer
+ 6
https://code.sololearn.com/cVTB196TCE8J/#cpp Cpp solution
12th Oct 2017, 1:48 PM
nevu
+ 6
just for fun first created pallindromes via recursion after filtered result not better but different :-) https://code.sololearn.com/ciTmjrYmn26f
12th Oct 2017, 6:27 PM
Oma Falk
+ 6
Here you go. Checks for valid input https://code.sololearn.com/cdrxWnR6E0I4/?ref=app
13th Oct 2017, 12:32 AM
Vari93
+ 5
My solution with filter, lambda in python https://code.sololearn.com/cbkhSDFaof72
12th Oct 2017, 12:25 PM
Oma Falk
+ 5
https://code.sololearn.com/c7OfyCMokz3a/?ref=app
13th Oct 2017, 6:32 AM
Marfik Em
13th Oct 2017, 7:43 AM
Sudipta Kumar Nath