Add Binary Strings

Given two binary strings, return their sum (also a binary string).

Example:

a = "100"

b = "11"

Return a + b = “111”.

Interview Code Editor
Hints
  • Hint 1
  • Solution Approach
  • Complete Solution
5076 successful submissions.
Asked In:
  • Facebook
Click here to jump start your coding interview preparation