Compare the Triplets

Sort by

recency

|

4343 Discussions

|

  • + 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)
    
  • + 0 comments
      ap=0
        bp=0
        for i in range(len(a)):
            if a[i]>b[i]:
                ap+=1
            elif a[i]<b[i]:
                bp+=1
        return [ap,bp]