You are viewing a single comment's thread. Return to all comments →
in C#
public static List<int> compareTriplets(List<int> a, List<int> b) { List<int> result = new List<int>(); int alice=0, bob=0; for (int i = 0; i < a.Count; i++) { if (a[i] > b[i]) { alice++; }else if (b[i] > a[i]) { bob++; } } result.Add(alice); result.Add(bob); return result; } }
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 →
in C#