logo CodeStepByStep logo

double_reverse

Language/Type: Python recursion

Write a recursive function named double_reverse that prints each character of a given string reversed twice. For example, the call of double_reverse("hello") prints oolllleehh. Do not use loops or auxiliary data structures; solve the problem recursively.

Convert the following iterative implementation into a recursive implementation:

Function: Write a Python function as described, not a complete program.

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.