We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functiongetTotalX(a,b){// Write your code herelettotal=0;letcurrent=a[a.length-1];while(current<=b[0]){if(a.every(n=>!(current%n))){if(b.every(n=>!(n%current))){total++;}}current++;}returntotal;}
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
simplified