Python Forum
Problem of recursivity
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem of recursivity
#1
Hi! I'm faced with a complex exercise that I can't solve. Here's the statement:

Quote: We're trying to perform a function that runs through an array of characters recursively, in order to replace all uppercase letters with the same lowercase letter.

I have already tried several methods but they are not compact or correct enough. Because after that I have to transform the python code into MIPS 32.

Thanks Big Grin
Shawi.
Reply
#2
We are not going to do your homework for you, but we're happy to help. Post what you have so far and where you are having problems. Make sure you use the Python tags so your code gets properly formatted (indentation being critical in Python).
Reply
#3
Are you sure is says "recursively"? This is a really bad problem for using recursion. I cannot think of a recursive solution that isn't silly. "array of characters" is also odd. Why would you have an "array" of characters instead of a str (or possibly a list).
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020