The ans is 16 because :-
if we drop from 16th floor and if egg1 breaks floor to be tested is b/w 1-16
. Then start from floor 1 with egg2 and floor from which it breaks first is
obtained and will lie b/w 1-16. the attempts are no more than 16.
however If egg1 doesn't break on 16 floor then try on (16+15)th i.e. 31st
floor , it will have 16 attempts at max in both cases
then (16+15+14)th and so on
floor to be tried will be 16,31,45,58,70,81,91.
In case it is 100th floor max attempts can be 7 attempts(earlier frm
16----91) and 9(92-100)attempts more i.e. 16 attempts.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to