Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Argument starter - The roots of all evil
Message
 
To
15/09/2004 20:38:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00938079
Message ID:
00942699
Views:
32
>>This problem doesn't require a recursive solution, even though one could be implemented. However, in some cases a recursive solution isn't only the best way, it's the only way.
>
>I think that I read somewhere that any solution that can be solved with recursion, can also be solved without it. Now, this is highly theoretical, and doesn't mean that it actually should be done; I understand that a significant amount of work may be required to avoid the recursion.

Hilmar,

In this instance, I don't see the point. IMV, it only clouds the issue.

One thing of note, however. A non-recurisve solution usually is faster (not that it matters much). This is because you don't have the push-pop mechanism going on all the time.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform