We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
alice = 0
bob = 0
for x in range(len(a)):
if a[x] > b[x]:
alice += 1
for x in range(len(b)):
if b[x] > a[x]:
bob += 1
result = (alice, bob)
return result
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
Do you see any improvements in my solution:
def compareTriplets(a, b):