7 kyu
Binary Addition
73,090 of 193,222garrettguy457
Description:
Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before, or after the addition.
The binary number returned should be a string.
Examples:(Input1, Input2 --> Output (explanation)))
1, 1 --> "10" (1 + 1 = 2 in decimal or 10 in binary)
5, 9 --> "1110" (5 + 9 = 14 in decimal or 1110 in binary)
Binary
Fundamentals
Similar Kata:
Stats:
Created | Apr 4, 2015 |
Published | Apr 4, 2015 |
Warriors Trained | 323018 |
Total Skips | 40716 |
Total Code Submissions | 426551 |
Total Times Completed | 193222 |
JavaScript Completions | 73090 |
Ruby Completions | 6508 |
Python Completions | 83182 |
CoffeeScript Completions | 67 |
C# Completions | 14695 |
C++ Completions | 4922 |
Prolog Completions | 28 |
COBOL Completions | 14 |
C Completions | 705 |
Scala Completions | 217 |
D Completions | 18 |
Java Completions | 8345 |
Rust Completions | 1502 |
PHP Completions | 1287 |
Lua Completions | 72 |
TypeScript Completions | 715 |
Haskell Completions | 23 |
Groovy Completions | 6 |
Perl Completions | 5 |
Total Stars | 1586 |
% of votes with a positive feedback rating | 87% of 14357 |
Total "Very Satisfied" Votes | 10912 |
Total "Somewhat Satisfied" Votes | 3022 |
Total "Not Satisfied" Votes | 423 |