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.
- Prepare
- Algorithms
- Warmup
- Compare the Triplets
- Discussions
Compare the Triplets
Compare the Triplets
Sort by
recency
|
4289 Discussions
|
Please Login in order to post a comment
My rust solution
def compareTriplets(a, b): # Write your code here points =[0,0] for i, j in zip(a, b): if i > j: points[0] = points[0] + 1 elif i < j: points[1] = points[1] + 1 return points
This is how i solved this problem in java:
This is how I solve this problem in java:
This is how I did it in python