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 Pavellver
def fastest_horse(horses: list) -> int:
if horses == [[]]:
raise ValueError
table = dict.fromkeys(range(len(horses[0])), 0)
for j in horses:
table[j.index(min(j))] += 1
return max(table, key=table.get) + 1
April 23, 2023
Comments: