Compare the Triplets
//leveraging True and False into increments
for a, b in zip(alice, bob):
score[0] += a > b
score[1] += a < b
Compare the Triplets
//leveraging True and False into increments
for a, b in zip(alice, bob):
score[0] += a > b
score[1] += a < b
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us