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

Stats:

CreatedApr 4, 2015
PublishedApr 4, 2015
Warriors Trained316526
Total Skips40266
Total Code Submissions418225
Total Times Completed188766
JavaScript Completions71784
Ruby Completions6471
Python Completions81158
CoffeeScript Completions67
C# Completions14488
C++ Completions4696
Prolog Completions28
COBOL Completions14
C Completions660
Scala Completions206
D Completions18
Java Completions7966
Rust Completions1435
PHP Completions1193
Lua Completions60
TypeScript Completions564
Total Stars1562
% of votes with a positive feedback rating87% of 14231
Total "Very Satisfied" Votes10814
Total "Somewhat Satisfied" Votes3001
Total "Not Satisfied" Votes416
Ad
Contributors
  • garrettguy457 Avatar
  • Javatlacati Avatar
  • joh_pot Avatar
  • GiacomoSorbi Avatar
  • aryan-firouzian Avatar
  • aweleshetu Avatar
  • aykis Avatar
  • Chrono79 Avatar
  • docgunthrop Avatar
  • B1ts Avatar
  • acjoker Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • username0 Avatar
  • MikChan Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • iming Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
  • JavaScripts Avatar
Ad