You are viewing a single comment's thread. Return to all comments →
Here is my simple Javascript (vanilla) solution
function compareTriplets(a, b) { let point = [0,0]; for (let i=0; i<a.length; i++) { if (a[i] > b[i]) { point[0] +=1; } else if (a[i] < b[i]) { point[1] +=1; } } return point }
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 →
Here is my simple Javascript (vanilla) solution