23. Add 'em Up

Difficulty: 

Add two binary numbers. The input numbers are in string format, and the output should be a string as well. For example, "10" and "1011" should return "1101". Binary numbers do not have leading zeros.

Input:

binaryAdd("1011", "10");

Output:

"1101"

Time Limit:

1000 (ms)

Hint (hover to see):

  • Hint #1



Results

ProblemsAcceptedWrongTimed OutError
170000

Input:

Expected Output:

Output: