logo CodeStepByStep logo

recursion_concepts

Language/Type: Python recursion

Answer the following questions about recursion:

How does a recursive function differ from a standard iterative function?
(order shuffled)
What are base cases and recursive cases?
(order shuffled)
Why does a recursive function need to have both base and recursive cases?
(order shuffled)
Sometimes the parameters that a caller would like to pass to a function don't match the parameters that are best for writing a recursive solution to the problem. What should a programmer do to resolve this issue?
(order shuffled)

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.