Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counter.most_common solution in Clear category for The Fastest Horse by flpo
from operator import itemgetter
from collections import Counter
def fastest_horse(matches):
winners = (min(enumerate(match, 1), key=itemgetter(1))[0] for match in matches)
return Counter(winners).most_common(1)[0][0]
March 13, 2018