You are viewing a single comment's thread. Return to all comments →
function compareTriplets(a, b) { let [_a, _b] = [a, b]; let res = [0, 0];
_a.map((f, i) => { if(f !== _b[i]) { const r = Math.max(f, _b[i]) === _b[i]; res[~~r]++; } }); return res;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
function compareTriplets(a, b) { let [_a, _b] = [a, b]; let res = [0, 0];
}