Skip to main content
added 2 characters in body
Source Link
Chau Giang
  • 1.3k
  • 1
  • 11
  • 16

JavaScript (Node.js), 2628 bytes

x=>xf=x=>x?x%2+10*f((x-x%2)/2):x

Try it online!

JavaScript (Node.js), 26 bytes

x=>x?x%2+10*f((x-x%2)/2):x

Try it online!

JavaScript (Node.js), 28 bytes

f=x=>x?x%2+10*f((x-x%2)/2):x

Try it online!

Post Undeleted by Chau Giang
Post Deleted by Chau Giang
Source Link
Chau Giang
  • 1.3k
  • 1
  • 11
  • 16

JavaScript (Node.js), 26 bytes

x=>x?x%2+10*f((x-x%2)/2):x

Try it online!