You are viewing a single comment's thread. Return to all comments →
JavaScript:
function compareTriplets(a, b) { let points = [0, 0]; for (let i = 0; i < a.length; i++) { if (a[i] > b[i]) { points[0]++; } else if (a[i] != b[i]) { points[1]++; } } return points; }
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 →
JavaScript: