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