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

Stats:

CreatedApr 4, 2015
PublishedApr 4, 2015
Warriors Trained323018
Total Skips40716
Total Code Submissions426551
Total Times Completed193222
JavaScript Completions73090
Ruby Completions6508
Python Completions83182
CoffeeScript Completions67
C# Completions14695
C++ Completions4922
Prolog Completions28
COBOL Completions14
C Completions705
Scala Completions217
D Completions18
Java Completions8345
Rust Completions1502
PHP Completions1287
Lua Completions72
TypeScript Completions715
Haskell Completions23
Groovy Completions6
Perl Completions5
Total Stars1586
% of votes with a positive feedback rating87% of 14357
Total "Very Satisfied" Votes10912
Total "Somewhat Satisfied" Votes3022
Total "Not Satisfied" Votes423
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
  • tobeannouncd Avatar
  • FranzMartyn Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
  • JavaScripts Avatar
Ad