https://leetcode.com/problems/add-binary/
Solution 1
/**
* @param {string} a
* @param {string} b
* @return {string}
*/
var addBinary = function (a, b) {
return (BigInt(`0b${a}`) + BigInt(`0b${b}`)).toString(2);
};
https://leetcode.com/problems/add-binary/
/**
* @param {string} a
* @param {string} b
* @return {string}
*/
var addBinary = function (a, b) {
return (BigInt(`0b${a}`) + BigInt(`0b${b}`)).toString(2);
};