Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
min & Counter solution in Clear category for The Fastest Horse by juestr
from collections import Counter
def fastest_horse(horses: list) -> int:
def minsec(time):
return [int(x) for x in time.split(':')]
wins = [race.index(min(race, key=minsec)) for race in horses]
result = Counter(wins).most_common(1)[0][0]
return result + 1
April 12, 2019