80.5k views
1 vote
What question should you keep in mind when debugging a recursive method

A. Is there at least one recursive call

B.did u consider all possible cases

C. All other answers

D. Does the method contain a statement to test an input value and leads to different cases?

1 Answer

1 vote

Answer:

A. Is there at least one recursive call

Step-by-step explanation:

While debugging a recursive method we should always check that the method contains atleast one recursive call or not. If the method contains no recursive calls then the method is not a recursive method.Recursive call is most important part of the recursive solution.

Recursion is when the function call itself in the function .

User Cellcon
by
6.9k points