DEV Community


Discussion on: Can you solve the fastest horse 🐴 algorithm problem?

jmau111 profile image
Julien Maury

I think this might be wrong.

Even if we take the winner of each group for a final "race of the champions", the winner of group 2 could be slower than the 2nd of group 1. So by eliminating 4 horses per each group during the first 5 races we might get a bad top 3.

7 seems to be the top solution.

Forem Open with the Forem app