To reverse a string using a recursive function, without swapping or using an extra memory.
Printable View
To reverse a string using a recursive function, without swapping or using an extra memory.
No one is going to do work for you.
Do it yourself, or at least try.
Post your attempt and what you don't get, etc. and we'll help.
Well since function calls use memory what you want isn't possible.
I think he means without declaring another variable or array to store it in.
Well, if you're not going to create another array to store the results in, I don't see how you can reverse a string without swapping elements.
What he meant and what he said are possiblity two very different things. But lets say we forget about the return address, you still have parameters that are variables so you can pass anything into it with creating more variables.Quote:
Originally Posted by manofsteel972
Why doesn't anyone use the board search function? Reversing a string is posted all the time.
Quzah.
I didnt find reversing a string on the boards using recursion. That seems like a good practise for recursion though. I think i will try it.
Well then you're an idiot. :)Quote:
Originally Posted by Cowboy
Using the following keywords: reverse string recursion
Quzah.
hmmm...yeah the search works a lot better...
but allow me to show my disapproval of your people skills right there...burn in hell bastard
You must have missed the smiley. You're allowed to say anything as long as you smile.
You also missed the part where I just don't care.
Quzah.
i didnt agree to those termsQuote:
Originally Posted by quzah
thats because it wasnt in your post...so why don't you show me that you don't care by not replying to this ;)Quote:
Originally Posted by quzah
Don't worry, your not the only one to be on the wrong end of the "Wrath of Quzah". And you are getting off relatively unscathed compared to others. :)
Perhaps if you got him a rain coat, he'd be nice. :p :D
>>And you are getting off relatively unscathed compared to others.
Much to the dismay of the audience :D Too bad, quzah must've been in a good mood today.
>>Perhaps if you got him a rain coat, he'd be nice.
A raincoat?... :confused: