You are viewing a single comment's thread. Return to all comments →
Java, all test cases
public static String gamingArray(List<Integer> arr) { int count = 0; int bigger = 0; for(Integer i : arr){ if(i > bigger){ bigger = i; count++; } } if (count % 2 == 0) { return "ANDY"; } return "BOB"; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Gaming Array 1
You are viewing a single comment's thread. Return to all comments →
Java, all test cases