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
|
4268 Discussions
|
Please Login in order to post a comment
Python 3 solution:
IN C++;
vector compareTriplets(vector a, vector b) { int alice=0; int bob=0;
}
c# int aliceScore = 0; int bobScore = 0; for(int i =0;i<3;i++){ if(a[i] > b[i]){ aliceScore++; } else if(a[i] {aliceScore,bobScore};
teamA = 0 teamB = 0