You are viewing a single comment's thread. Return to all comments →
Python 3
def gamingArray(arr): last = 1 curr_max = arr[0] for number in arr[1:]: if number > curr_max: curr_max = number last += 1 return "ANDY" if last % 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 →
Python 3