You are viewing a single comment's thread. Return to all comments →
def migratoryBirds(arr): theCounter = [0,0,0,0,0] # It is guaranteed that each type is in 1-5 for i in arr: theCounter[i - 1] += 1
return theCounter.index(max(theCounter))+1
Seems like cookies are disabled on this browser, please enable them to open this website
Migratory Birds
You are viewing a single comment's thread. Return to all comments →
Python3