instagram

Given two binary strings, return their sum in binary string

String a = “11”;
String b = “1”;

Output : “100”;

Note :
0+0 = 0
1+0 = 1
1+1 = 10
1+1+1 = 11

Share