Forgot password? New user? Sign up

Existing user? Log in

1 2 3

i=1 while i <=n: i*=2

What is the number of comparisons made in the execution of the while loop shown above?

while

Details and Assumptions

$n\geq 1$

Problem Loading...

Note Loading...

Set Loading...