manu2010
Newbie level 3
100 floor ball algorithm
hello everyone,
please help me with this :
Suppose given two identical crystal balls and n stories building. the goal is to find the least floor so that if you throw the ball from this floor, the ball will break. the rules are:
the two balls break at the same floors.
if a ball breaks at floor i it also breaks at floor i+1.
i have to find the least floor the ball breaks at with minimum number of possible ball throws.
thanks
hello everyone,
please help me with this :
Suppose given two identical crystal balls and n stories building. the goal is to find the least floor so that if you throw the ball from this floor, the ball will break. the rules are:
the two balls break at the same floors.
if a ball breaks at floor i it also breaks at floor i+1.
i have to find the least floor the ball breaks at with minimum number of possible ball throws.
thanks