You are given 2 eggs.
* You have access to a 100-storey building.
* Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical.
* You need to figure out the highest floor of a 100-storey building an egg can be dropped without breaking.
* Now the question is how many drops you need to make. You are allowed to break 2 eggs in the process
Click for Solution

  • Warning: Illegal string offset 'name' in /home/prepdo6/gpl4you/discussquessub.php on line 681
    A go to the kitchen of ground floor...rest u know


  • Warning: Illegal string offset 'name' in /home/prepdo6/gpl4you/discussquessub.php on line 681
    A The dropping should start from (0 100)/2= 50th floor.
    There may be 2 cases:
    Case 1: The egg breaks
    The next dropping should start from first floor using the
    remaining egg by incrementing the floor by 1, i.e. 1,2,3,4,....,49
    to justify the floor from where the egg will break.

    Case 2: The egg has not broken at the 50th floor.
    The next dropping should take start from 51st floor and floor must be incremented by 1 till 100 i.e. 51,52,53,....,100.

    Thus the floor can be identified by minimum no of steps and at the cost of at most 2 eggs only.

    For further clarifications, post ur comment here.



  • Warning: Illegal string offset 'name' in /home/prepdo6/gpl4you/discussquessub.php on line 664

  • Warning: Illegal string offset 'name' in /home/prepdo6/gpl4you/discussquessub.php on line 682
    P Dude, what if they break when thrown from 100th floor?? Then you can't find the answer. What i think is, one has to be dropped from first while the other from 100th. If neither of them breaks, then one from 2nd and another from 98th. This way we can find out exactly when the egg is broken with the least number of drops. Maximum number of drops is 99. 49 from one egg and 50 from another. Correct me if i m wrong :)


  • Warning: Illegal string offset 'name' in /home/prepdo6/gpl4you/discussquessub.php on line 681
    P Drop both eggs from from the first floor...if both break...they can be throen fron only from the frst floor...if either of them doesnt break then go to the 100th floor...throe them they wouldnt break coz its mentioned in the question..

    CpjJwWHV   Exactly.........throw them from 1st floor.....if They breaks its all done or otherwise if they don't break we don't even have to go to 100th floor.........It's so damm easy..........
    14 years ago

    Smiley

[Insert Code]