Question: what is time complexity of this algorithm : program (n) if n = 1 then printZ else program (n-1) for i = 1 to 5
what is time complexity of this algorithm :
program (n)
if n = 1 then
printZ
else
program (n-1)
for i = 1 to 5 do
printZ
end for
end if
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
