Saturday, September 27, 2014

Add Binary

Problem

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

For example,
a = "11"
b = "1"
Return "100".

Idea


Note

  • Convert char to int
  • Convert int to string

  • Solution


    No comments:

    Post a Comment