Welcome to MindCipher, a social repository of the world's greatest brain teasers, logic puzzles and mental challenges.

ghostrider08

Comments 4

Interview Question - Databases

Imagine your favorite sandbox. In this sandbox, you know exactly where you put your castle-building bucket with all the other tools and toys. When you need to build a castle, you'll know where to look for the needed utilities.

context
Going to the Track

Isn't this this doable with 6 races? We divide the 25 horses into groups of 5 (= 5 races) and then we arrange the 6th race with the 5 winners competing. Therefore on the 1st, 2nd and 3rd place will be the three fastest horses from the pack.

context
Going to the Track

Sorry, I rushed the answer. I was not considering the race with the 3 fastest horses in the lineup.

context
12 Identical Balls

Actually, you can find the lighter ball too. We select the first ball and compare it with the second. If they're equal (two balls are always identical from the three), the third ball is unique. Next, we compare the first one with the third one. It'll be either lighter or heavier. If it's lighter the third ball is lighter than the 11 remaining balls, otherwise we've found the heaviest ball.

context