Question: Which property of recursion does the following method violate? public Node callIt (Node ) if (r-null) return callit(r.next) else return O The method does not
Which property of recursion does the following method violate? public Node callIt (Node ) if (r-null) return callit(r.next) else return O The method does not call itself There is no base case (escape clause) O The base case exists but will never be executed O The method shouldn't return a value O none of these is correct Question 34 1 pts Which property of recursion does the following method violate? public int callit (int n) if (n>0) return callit (n-1) else return callit (n-2) O The method does not call itself O There is no base case (escape clause O The base case exists but will never be executed O The method shouldn't return a value O none of these is correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
