Question: Which is the time complexity of this pseudocode? func doSomething(n): if (n
Which is the time complexity of this pseudocode?
func doSomething(n):
if (n<=1) return;
for (i=1; i<=n; i=i*2){
print("O(1)")
}
doSomething(n/4);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
