You are viewing a single comment's thread. Return to all comments →
def compareTriplets(a, b): ra = 0 rb = 0 for i in range(len(a)): if a[i] > b[i]: ra += 1 elif a[i] < b[i]: rb += 1 return ra, rb
Seems like cookies are disabled on this browser, please enable them to open this website
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
def compareTriplets(a, b): ra = 0 rb = 0 for i in range(len(a)): if a[i] > b[i]: ra += 1 elif a[i] < b[i]: rb += 1 return ra, rb