Re: [Algorithms] Directory search without recursion?
Brought to you by:
vexxed72
From: Patrick E. H. <hu...@tr...> - 2000-08-17 22:06:33
|
>is there any way to implement this without recursion? >any opinions on using recursion for anything? So what's wrong with recursion? Directory trees are a natural for this.. You could always build a local stack of directories in your current level, then keep looping through that stack building further stacks, etc.. Basically recreating what a recursion would do anyways. <question> Where in heck did recursion get such a bad rap? </question> |