There is another standard algorithm that has a elegant recursive solution: mergesort. Your "benchmark" would be far more interesting with mergesort than with factorials. And make sure to test data sets of different sizes.
Abigail
In reply to Re: Recursion Alternatives?
by Abigail-II
in thread Recursion Alternatives?
by Cabrion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |