You are viewing a single comment's thread. Return to all comments →
My javascript solution:
function getTotalX(a, b) { let validCount = 0; for (let x = 1; x <= 100; x++) { if (a.every(int => (x % int == 0))) { if (b.every(int => (int % x == 0))) { validCount++; } } } return validCount; }
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
My javascript solution: