You are viewing a single comment's thread. Return to all comments →
Solution with collections.Counter
from collections import Counter def migratoryBirds(arr): arr = Counter(arr) return min([key for key, value in arr.items() if value == max(arr.values())])
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 →
Python 3
Solution with collections.Counter