Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
6-liner: How many winners are there? solution in Clear category for The Fastest Horse by Stensen
from collections import defaultdict
winner = lambda w: w.index(min(w))
def fastest_horse(races):
horses = defaultdict(int)
for race in races: horses[winner(race)] += 1
return max(horses, key=lambda i: horses[i]) + 1
Oct. 31, 2020
Comments: