6 kyu

Adding Binary Numbers

567 of 1,380DivyanshBatham

Description:

##Task: You have to write a function add which takes two binary numbers as strings and returns their sum as a string.

##Note:

  • You are not allowed to convert binary to decimal & vice versa.
  • The sum should contain No leading zeroes.

##Examples:

add('111','10'); => '1001'
add('1101','101'); => '10010'
add('1101','10111') => '100100'
Binary
Bits
Fundamentals

Stats:

CreatedAug 4, 2015
PublishedAug 5, 2015
Warriors Trained4270
Total Skips1048
Total Code Submissions9908
Total Times Completed1380
JavaScript Completions567
Ruby Completions117
Python Completions552
C# Completions186
Total Stars105
% of votes with a positive feedback rating87% of 319
Total "Very Satisfied" Votes261
Total "Somewhat Satisfied" Votes34
Total "Not Satisfied" Votes24
Ad
Contributors
  • DivyanshBatham Avatar
  • GiacomoSorbi Avatar
  • kazk Avatar
  • user5036852 Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad