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 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..
Explore
- GPL4you
- Home
- Prepdoor - Online Mock Test
- About
- FAQs
- Contact
- Contact Us
© 2011 - gpl4you | All Rights Reserved.