Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Most Frequent by Moff
def most_frequent(data):
c = dict()
for s in data:
c[s] = c.get(s, 0) + 1
return max(c.items(), key=lambda x: x[1])[0]
Oct. 20, 2017