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