Find fastest 3 horses

There are 25 horses among which you need to find out the fastest 3 horses. You can conduct race among at most 5 to find out their relative speed. At no point you can find out the actual speed of the horse in a race. Find out how many races are required to get the top 3 horses.

Sources : http://www.geeksforgeeks.org/thoughtworks-interview-experience-set-5-campus/

http://www.geeksforgeeks.org/adobe-interview-set-4/

Author: Amit Khandelwal 1
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer