Answers for "Compare the Triplets solution hackerrank"

Go
0

compare the triplets hackerrank solution

for(let i=0; i<a.length; i++){


if(a[i] < b[i]){
    bobScore += 1
}
if(a[i] == b[i]){

}
if(a[i] > b[i]){
aliceScore += 1
}


}
console.log(aliceScore + ' ' + bobScore)
// Paste this code inside the function.
Posted by: Guest on October-19-2021

Code answers related to "Compare the Triplets solution hackerrank"

Browse Popular Code Answers by Language