You are viewing a single comment's thread. Return to all comments →
JAVA solution:
class Result { public static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) { int aa=0,bb=0; for(int i=0;i<a.size();i++) { if(a.get(i)>b.get(i)) aa++; else if(a.get(i)<b.get(i)) bb++; } return Arrays.asList(aa,bb); } }
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 →
JAVA solution: