interview questions

Interview Question – Find top three horses

Interview Question - Find top three horses : You are given five race tracks and twenty five horses.Find the minimum number of races you need to organize to find the fastest three horses. Here five race tracks means that only five horses can run at a time. Solution The trick to approach these type of probelm is to consider the corner cases, most of the times what seems obvious is not what is true. Lets name the five tracks as T1 , T2, T3 , T4 , T5 and we organize five races in the beginning Let us say that we have the horses named from A - Y. Lets organize the below races on the ...
Read More