Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save codeperfectplus/2accddb27f7596557418c02fbcb4b0f5 to your computer and use it in GitHub Desktop.

Select an option

Save codeperfectplus/2accddb27f7596557418c02fbcb4b0f5 to your computer and use it in GitHub Desktop.
def compareTriplets(a:list, b:list):
aliceScore = 0
bobScore = 0
for i in range(len(a)):
if a[i] > b[i]:
aliceScore += 1
elif b[i] > a[i]:
bobScore += 1
return [aliceScore,bobScore]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment