Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Fastest Horse by alexandrov.net
from collections import Counter
def fastest_horse(horses: list) -> int:
"""
time in turn in horses
best time - min(turn)
win horse - turn.index(min(turn))
Counter {'horse':win counter}
+1 for 0-2 to 1-3
"""
return Counter([turn.index(min(turn)) for turn in horses]).most_common(1)[0][0]+1
Oct. 5, 2018
Comments: