John123's Profile
Expert
1299
points

Questions
36

Answers
150

John123 loves solving puzzles at PuzzleFry.com. I am proud PuzzleFry member and like my time invested in solving brain teasers.
  • Set the first switches on for abt 10min, and then switch on the second switch and then enter the room.
    Three cases are possible
    1.Bulb is on => second switch is the ans
    2.Bulb is off and on touching bulb , you will find bulb to be warm
    =>1st switch is the ans.
    3.Bulb is off and on touching second bulb , you will find bulb to be normal(not warm)
    =>3rd bulb is the ans.

    • 9371 views
    • 2 answers
    • 1 votes
    • 4657 views
    • 1 answers
    • 0 votes
  • Let’s break it down. The product of their ages is 72. So what are the possible choices?

    2, 2, 18 – sum(2, 2, 18) = 22
    2, 4, 9 – sum(2, 4, 9) = 15
    2, 6, 6 – sum(2, 6, 6) = 14
    2, 3, 12 – sum(2, 3, 12) = 17
    3, 4, 6 – sum(3, 4, 6) = 13
    3, 3, 8 – sum(3, 3, 8 ) = 14
    1, 8, 9 – sum(1,8,9) = 18
    1, 3, 24 – sum(1, 3, 24) = 28
    1, 4, 18 – sum(1, 4, 18) = 23
    1, 2, 36 – sum(1, 2, 36) = 39
    1, 6, 12 – sum(1, 6, 12) = 19

    The sum of their ages is the same as your birth date. That could be anything from 1 to 31 but the fact that Jack was unable to find out the ages, it means there are two or more combinations with the same sum. From the choices above, only two of them are possible now.

    2, 6, 6 – sum(2, 6, 6) = 14
    3, 3, 8 – sum(3, 3, 8 ) = 14

    Since the eldest kid is taking piano lessons, we can eliminate combination 1 since there are two eldest ones. The answer is 3, 3 and 8.

    • 4072 views
    • 1 answers
    • 0 votes
  • Naturally, the train travelling against the spin of the earth. This train will wear its wheels out more quickly, because the centrifugal force is less on this train.

    • 7661 views
    • 1 answers
    • 0 votes
  • Since the boys have as many brothers as sisters, there must be 1 boy more than the number of girls. If we try 2 and 1, 3 and 2, and 4 and 3, we will find that 4 boys and 3 girls is the solution to fulfil the requirement that each girl has twice as many brothers as sisters

    • 5922 views
    • 1 answers
    • 0 votes
    • 4337 views
    • 2 answers
    • 0 votes
  • The first brother is 70 inches tall, the second 72 the third 74 and the fourth brother 80 inches tall.

    • 3937 views
    • 1 answers
    • 0 votes
    • 5959 views
    • 1 answers
    • 0 votes
  • The proportion of boys to girls is 1 : 1        (Shocked?!!!!)

    EXPLANATION-
    This is a very simple probability question in a software interview. This question might be a little old to be ever asked again but it is a good warm up.

    Assume there are C number of couples so there would be C boys. The number of girls can be calculated by the following method.

    Number of girls = 0*(Probability of 0 girls) + 1*(Probability of 1 girl) + 2*(Probability of 2 girls) + …
    Number of girls = 0*(C*1/2) + 1*(C*1/2*1/2) + 2*(C*1/2*1/2*1/2) + …
    Number of girls = 0 + C/4 + 2*C/8 + 3*C/16 + …
    Number of girls = C
    (using mathematical formulas; it becomes apparent if you just sum up the first 4-5 terms)

    The proportion of boys to girls is 1 : 1.

    • 94275 views
    • 5 answers
    • 2 votes
  • The easiest way to do this would be to start from the first floor and drop the egg. If it doesn’t break, move on to the next floor. If it does break, then we know the maximum floor the egg will survive is 0. If we continue this process, we will easily find out the maximum floors the egg will survive with just one egg. So the maximum number of tries is 100 that is when the egg survives even at the 100th floor.

    Can we do better? Of course we can. Let’s start at the second floor. If the egg breaks, then we can use the second egg to go back to the first floor and try again. If it does not break, then we can go ahead and try on the 4th floor (in multiples of 2). If it ever breaks, say at floor x, then we know it survived floor x-2. That leaves us with just floor x-1 to try with the second egg. So what is the maximum number of tries possible? It occurs when the egg survives 98 or 99 floors. It will take 50 tries to reach floor 100 and one more egg to try on the 99th floor so the total is 51 tries. Wow, that is almost half of what we had last time.

    Can we do even better? Yes we can (Bob, the builder). What if we try at intervals of 3? Applying the same logic as the previous case, we need a max of 35 tries to find out the information (33 tries to reach 99th floor and 2 more on 97th and 98th floor).

    Interval – Maximum tries
    1 – 100
    2 – 51
    3 – 35
    4 – 29
    5 – 25
    6 – 21
    7 – 20
    8 – 19
    9 – 19
    10 – 19
    11 – 19
    12 – 19
    13 – 19
    14 – 20
    15 – 20
    16 – 21

    So picking any one of the intervals with 19 maximum tries would be fine.
    Instead of taking equal intervals, we can increase the number of floors by one less than the previous increment. For example, let’s first try at floor 14. If it breaks, then we need 13 more tries to find the solution. If it doesn’t break, then we should try floor 27 (14 + 13). If it breaks, we need 12 more tries to find the solution. So the initial 2 tries plus the additional 12 tries would still be 14 tries in total. If it doesn’t break, we can try 39 (27 + 12) and so on. Using 14 as the initial floor, we can reach up to floor 105 (14 + 13 + 12 + … + 1) before we need more than 14 tries. Since we only need to cover 100 floors, 14 tries is sufficient to find the solution.

    Therefore, 14 is the least number of tries to find out the solution.

    • 5332 views
    • 1 answers
    • 0 votes