Question: 6. Using big-oh notation, give the runtime for each of the following recursive functions. You do not need to justify your answers: a) int

6. Using big-oh notation, give the runtime for each of the following recursive functions. You do not need to justify your answers: a) int nonesense (int n). { if (n < 0) return 1; return nonsense (n-2) + 1; ) b) int no_nonesense (int n) { if (n < 0) return 1; return no_nonsense (n-1) +no_nonsense (n-1);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
