You are viewing a single comment's thread. Return to all comments →
Maybe too simple... static int[] solve(int[] a, int[] b) {
int aliceResult = 0; int bobResult = 0; for(int i = 0; i < 3; i++) { if(a[i] > b[i]) { aliceResult++; } if(a[i] < b[i]) { bobResult++; } } return new int[]{ aliceResult, bobResult}; }
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 →
Maybe too simple... static int[] solve(int[] a, int[] b) {