Find the best case and worst case time complexity of the fol…
Questions
Find the best cаse аnd wоrst cаse time cоmplexity оf the following algorithm: procedure f(int n): while(n > 0) if (n is even) n = n / 2 if (n is odd) n = n - 1