Tell me about how you would solve a puzzle where you need to determine the top 3 horses among 25.
Implement the race-based solution. The function receives 25 distinct speed values, partitions the horses into five groups of five, compares group winners, and returns the indices of the three fastest horses in descending speed order.
Function signature: def top_three_horses(speeds):
Input is a list of exactly 25 distinct integers. Output is a list of three integer indices.
def top_three_horses(speeds):