You are viewing a single comment's thread. Return to all comments →
Clean problem — reminds me of how I categorized menu items by popularity on the Popeyes menu site. Here's my Python take using Counter:
from collections import Counter def migratoryBirds(arr): counts = Counter(arr) return min([k for k, v in counts.items() if v == max(counts.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 →
Clean problem — reminds me of how I categorized menu items by popularity on the Popeyes menu site. Here's my Python take using Counter: