Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Recursive Character Search and Destroy

Name: Anonymous 2007-05-11 16:50 ID:tCgeez6Q

I receive a string, and I want to remove any 'a', 'b' and 'c' characters, in a recursive way.

How do I do this in C and Java?

Thanks

Name: Anonymous 2007-05-11 18:11 ID:ze7o20Cd

>>13
one recursive function in my all life (factorial).
OMG. You need to read SICP. For real, I really recommend it. Just chapter 1, and you'll become an EXPERT PROGRAMMER of recursion. Also,

It's for a comparative between iterative and recursive timings, memory consuption, etc.
Who cares. Ah, you're in your OMG OPTIMIZED phase. Well, I can tell you about it right now:
1. The non-recursive function will be faster on almost all compilers or interpreters.
2. The non-recursive function will take less memory on all compilers or interpreters that don't do tail call/recursion optimization.
3. The above facts are irrelevant compared to development time and costs. Your time > your hardware resources. You can make far more money in the time you save, or just be lazy.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List