dashkin111
- 47
- 0
When is recursion really better than iteration. I'm not a programmer by major, but I can't think of any time when recursion would be better
ProcessDirectory(...)
{
ForEachFile()
{
ProcessFile();
}
ForEachDirectotry()
{
ProcessDirectory()
}
}
ProcessFile(...)
{
}