8 kyu

Convert to Binary

21,052 of 35,752JapaX

Description:

Task Overview

Given a non-negative integer b, write a function which returns an integer d such that the binary representation of b is the same as the decimal representation of d.

Examples:

n = 1 should return 1
n = 5 should return 101
n = 11 should return 1011
Mathematics
Algorithms
Fundamentals

More By Author:

Check out these other kata created by JapaX

Stats:

CreatedNov 3, 2017
PublishedNov 3, 2017
Warriors Trained47639
Total Skips2157
Total Code Submissions76566
Total Times Completed35752
JavaScript Completions21052
C# Completions1729
Java Completions4486
C Completions759
NASM Completions39
Ruby Completions563
Racket Completions45
Python Completions7496
TypeScript Completions389
Haskell Completions32
Groovy Completions12
Total Stars291
% of votes with a positive feedback rating91% of 3008
Total "Very Satisfied" Votes2540
Total "Somewhat Satisfied" Votes396
Total "Not Satisfied" Votes72
Total Rank Assessments4
Average Assessed Rank
8 kyu
Highest Assessed Rank
8 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • JapaX Avatar
  • Unnamed Avatar
  • adrian.eyre Avatar
  • B1ts Avatar
  • mitron6 Avatar
  • Souzooka Avatar
  • ZED.CWT Avatar
  • Peppece Avatar
  • FArekkusu Avatar
  • monadius Avatar
  • reinhardtp Avatar
  • user9644768 Avatar
  • uniapi Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • tobeannouncd Avatar
  • FranzMartyn Avatar
  • MingLeeNg Avatar
Ad