binary_addition
by Akshay Jain
JavaScript
a=[1,0,0,0,1,0,1,0,1];
b=[0,1,1,1,0,1,0,0,1];
function binary_addition(a,b) {
const c = [];
a.map((element, index) => {
const carry = element & b[index];
const add = element | b[index];
})
}
by Akshay Jain
a=[1,0,0,0,1,0,1,0,1];
b=[0,1,1,1,0,1,0,0,1];
function binary_addition(a,b) {
const c = [];
a.map((element, index) => {
const carry = element & b[index];
const add = element | b[index];
})
}