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

Perl to Java

Name: Anonymous 2012-02-22 11:29

How would this perl code look like in Java?

http://pastebin.com/GPzQFxPL

Name: Anonymous 2012-02-22 20:20

>>15
A recursive function is allowed to have a loop in it, but that would be kind of confusing. Loops and recursion are two high-level ways of looking at the same thing. You generally pick one or the other to implement a particular algorithm so someone reading the code doesn't have to mentally translate between the two to figure out what's going on.

If loops are the only control flow being used, like in >>14, then it's not recursion at all!

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