Answers for "compare the triplets hackerrank solution"

0

Compare the Triplets

//leveraging True and False into increments
for a, b in zip(alice, bob):
    score[0] += a > b
    score[1] += a < b
Posted by: Guest on November-07-2020
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 hackerrank solution"

Code answers related to "Javascript"

Browse Popular Code Answers by Language