[gcj] Re: Egg Drop

2009-09-09 Thread sajith varghese
ay be I am missing something.. but all of this seems black magic > > > On Tue, Sep 8, 2009 at 3:49 PM, sajith varghese > wrote: > >> >> will this makes the logic simple. >> want to find F(D,B) >> I drop an egg from some floor, if it breaks it will break on some

[gcj] Re: Egg Drop

2009-09-08 Thread sajith varghese
will this makes the logic simple. want to find F(D,B) I drop an egg from some floor, if it breaks it will break on some floor below, and I have left B-1 breaks and D-1 drops. If it doesn't break I have to find a floor above the current floor and have B breaks and D-1 drops. so total breaks become,