Top "Recursion" questions

Recursion is a kind of function call in which a function calls itself.

Reversing a String with Recursion in Java

Here is some Java code to reverse a string recursively. Could someone provide an explanation of how it works? public …

java string recursion reverse
How do I recursively delete a directory and its entire contents (files + sub dirs) in PHP?

How do I delete a directory and its entire contents (files and subdirectories) in PHP?

php recursion delete-directory
Creating a recursive method for Palindrome

I am trying to create a Palindrome program using recursion within Java but I am stuck, this is what I …

java recursion palindrome
What is the most efficient/elegant way to parse a flat table into a tree?

Assume you have a flat table that stores an ordered tree hierarchy: Id Name ParentId Order 1 'Node 1' 0 10 2 'Node 1.1' 1 10 3 …

sql algorithm recursion tree hierarchical-data
What in layman's terms is a Recursive Function using PHP

Can anyone please explain a recursive function to me in PHP (without using Fibonacci) in layman language and using examples? …

php function recursion
find all subsets that sum to a particular value

Given a set of numbers: {1, 3, 2, 5, 4, 9}, find the number of subsets that sum to a particular value (say, 9 for this example). …

algorithm recursion subset
How do you recursively unzip archives in a directory and its subdirectories from the Unix command-line?

The unzip command doesn't have an option for recursively unzipping archives. If I have the following directory structure and archives: /…

unix recursion spaces unzip
self referential struct definition?

I haven't been writing C for very long, and so I'm not sure about how I should go about doing …

c recursion struct typedef
Real-world examples of recursion

What are real-world problems where a recursive approach is the natural solution besides depth-first search (DFS)? (I don't consider Tower …

recursion
Recursion in Python? RuntimeError: maximum recursion depth exceeded while calling a Python object

Possible Duplicate: Maximum recursion depth? I have another problem with my code. I'm wrtiting my first program in Vpython and …

python recursion runtime-error simulation vpython