7 kyu
Binary Addition
71,784 of 188,766garrettguy457
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 | 316526 |
Total Skips | 40266 |
Total Code Submissions | 418225 |
Total Times Completed | 188766 |
JavaScript Completions | 71784 |
Ruby Completions | 6471 |
Python Completions | 81158 |
CoffeeScript Completions | 67 |
C# Completions | 14488 |
C++ Completions | 4696 |
Prolog Completions | 28 |
COBOL Completions | 14 |
C Completions | 660 |
Scala Completions | 206 |
D Completions | 18 |
Java Completions | 7966 |
Rust Completions | 1435 |
PHP Completions | 1193 |
Lua Completions | 60 |
TypeScript Completions | 564 |
Total Stars | 1562 |
% of votes with a positive feedback rating | 87% of 14231 |
Total "Very Satisfied" Votes | 10814 |
Total "Somewhat Satisfied" Votes | 3001 |
Total "Not Satisfied" Votes | 416 |