Add Binary Strings
Submissions: 4021   Accuracy:

30.74%

  Difficulty: Easy   Marks: 2
Associated Course(s):   Interview Preparation
       

Given two binary strings s1 and s2. Print the resultant string after adding given two binary strings.

Input:
The first line of input contains an integer T denoting the number of test cases.
The first line of each test case contains two binary strings s1 and s2 separated by space.

Output:
For each test case print the resultant binary string.

Constraints:
1 <= T <= 70

1 <= |s1|, |s2| <= 200, where |s| represents the length of string s

Example:
Input:
2
1101 111
10 01

Output:
10100
11

** For More Input/Output Examples Use 'Expected Output' option **

Author: bhawnamait


Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.