• + 0 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())])