Question: How many lines, as a function of n (in (.) form), does the following program print? Use the recursion-tree method to solve this problem.
How many lines, as a function of n (in (.) form), does the following program print? Use the recursion-tree method to solve this problem. void f(n) { } if (n > 1) { } print("still going"); f(n/3); f(n/3);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
