View Single Post
Old 08-19-2007, 04:29 AM   #12
Re: Recursion Question
The maximum recursion depth is the number of arrays you have. If the high number of combinations stem from the number of array items, there is no problem. If they stem from the number of arrays, there is a problem. Still, as Parkar mentioned, you can still do it with two nested loops avoiding recursion. The code is only slightly more complicated.

BTW, I just noticed a blatant error in my code above. The ">" comparisson in the first "if" block should be a ">=".
rg3 is offline