链接:https://leetcode.com/problems/add-binary/
Question
Given two binary strings a
and b
, return their sum as a binary string.
Example 1:
1 | Input: a = "11", b = "1" |
Example 2:
1 | Input: a = "1010", b = "1011" |
My Answer
1 | var addBinary = function(a, b) { |