Compare the Triplets

Sort by

recency

|

4344 Discussions

|

  • + 0 comments

    def maxx(a,b): if a==b: return 2 elif a>b: return 0 else: return 1 def compareTriplets(a, b): # Write your code here score=[0]*3 for i in range(0,len(a)): winner=maxx(a[i],b[i]) score[winner]+=1 score.pop() return score

  • + 0 comments
        x = sum([10 if aa>bb else 1 if aa <bb else 0 for aa,bb in zip(a,b)])    
        return [x//10, x%10]
    
  • + 0 comments

    Thanks for sharing the link! That was an interesting read—appreciate the detailed insights and the thoughtful discussion happening in the thread. Looking forward to more updates! महादेव बुक लॉगिन

  • + 0 comments

    Can You help to integrate this algorithem script with my Aeropuertos en California page?I want to use it on it on my wordpres website.

  • + 0 comments

    Here is my solution:

    def compareTriplets(a, b):
        points = [0,0]
        for x, y in zip(a, b):
            match x,y:
                case a,b if x == y:
                    result == result
                case a,b if x > y:
                    result[0] += 1
                case a,b if x < y:
                    result[1] += 1
        return(result)