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