Other options complexity


#1

why not the 4th option?


#2

In 4th loop we divide positive number n by 2 every iteration, hence i is always positive. So the stop condition is never satisfied and loop runs forever.