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