Friday 28 September 2018

HARD Google Interview Question – The 25 Horses Puzzle



There are 25 mechanical horses and a single racetrack. Each horse completes the track in a pre-programmed time, and the horses all have different finishing times, unknown to you. You can race 5 horses at a time. After a race is over, you get a printout with the order the horses finished, but not the finishing times of the horses. What is the minimum number of races you need to identify the fastest 3 horses?

I was suggested this puzzle via email by Terry Stickels. This is also a popular interview question at tech companies like Google. See a list of all sources in my blog post for this video:
https://wp.me/p6aMk-58P

Subscribe: https://www.youtube.com/user/MindYourDecisions?sub_confirmation=1

Playlist to watch all videos on MindYourDecisions

This is the only channel to feature math topics suggested by people around the world. Support the channel on Patreon so we can share the beauty of mathematics and make the world a better place:
https://ift.tt/1QQIpXn

If you buy from the links below I may receive a commission for sales. This has no effect on the price for you.

My Books
“The Joy of Game Theory” shows how you can use math to out-think your competition. (rated 4/5 stars on 34 reviews)
http://amzn.to/1uQvA20

“The Irrationality Illusion: How To Make Smart Decisions And Overcome Bias” is a handbook that explains the many ways we are biased about decision-making and offers techniques to make smart decisions. (rated 4.6/5 stars on 3 reviews)
http://amzn.to/1o3FaAg

“Math Puzzles Volume 1” features classic brain teasers and riddles with complete solutions for problems in counting, geometry, probability, and game theory. Volume 1 is rated 4.4/5 stars on 13 reviews.
http://amzn.to/1GhUUSH

“Math Puzzles Volume 2” is a sequel book with more great problems. (rated 4.5/5 stars on 6 reviews)
http://amzn.to/1NKbyCs

“Math Puzzles Volume 3” is the third in the series. (rated 4/5 stars on 6 reviews)
http://amzn.to/1NKbGlp

“40 Paradoxes in Logic, Probability, and Game Theory” contains thought-provoking and counter-intuitive results. (rated 4.4/5 stars on 13 reviews)
http://amzn.to/1LOCI4U

“The Best Mental Math Tricks” teaches how you can look like a math genius by solving problems in your head (rated 4.8/5 stars on 5 reviews)
http://amzn.to/18maAdo

“Multiply Numbers By Drawing Lines” This book is a reference guide for my video that has over 1 million views on a geometric method to multiply numbers. (rated 4.4/5 stars on 5 reviews)
http://amzn.to/XRm7M4

Connect with me
My Blog: https://ift.tt/2pHMxi6
Twitter: https://twitter.com/preshtalwalkar
Facebook: https://ift.tt/1pEAI8R
Google+: https://ift.tt/1rlbsEt
Pinterest: https://ift.tt/22DfcmS
Tumblr: https://ift.tt/2D3pOmf
Instagram: https://ift.tt/22DfcmU
Patreon: https://ift.tt/1QQIpXn

Newsletter (sent only for big news, like a new book release): http://eepurl.com/KvS0r

source

No comments:

Post a Comment