You are viewing a single comment's thread. Return to all comments →
python solution
def migratoryBirds(arr): pairs = {} for i in arr: if i in pairs: pairs[i] += 1 else: pairs[i] = 1 lst = [] for key, value in pairs.items(): if value == max(pairs.values()): lst.append(key) return min(lst)
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 solution