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
Similar Kata:
Stats:
Created | Nov 3, 2017 |
Published | Nov 3, 2017 |
Warriors Trained | 47639 |
Total Skips | 2157 |
Total Code Submissions | 76566 |
Total Times Completed | 35752 |
JavaScript Completions | 21052 |
C# Completions | 1729 |
Java Completions | 4486 |
C Completions | 759 |
NASM Completions | 39 |
Ruby Completions | 563 |
Racket Completions | 45 |
Python Completions | 7496 |
TypeScript Completions | 389 |
Haskell Completions | 32 |
Groovy Completions | 12 |
Total Stars | 291 |
% of votes with a positive feedback rating | 91% of 3008 |
Total "Very Satisfied" Votes | 2540 |
Total "Somewhat Satisfied" Votes | 396 |
Total "Not Satisfied" Votes | 72 |
Total Rank Assessments | 4 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 8 kyu |
Lowest Assessed Rank | 8 kyu |