You are viewing a single comment's thread. Return to all comments →
Python3
def gamingArray(arr): count_max = 0 last_max = 0 for a in arr: if a > last_max: last_max = a count_max +=1 return "ANDY" if count_max % 2 == 0 else "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 →
Python3