I need one example on regression. Also tell between recursion and regression which one is faster?
Regression? Don't you mean iteration? Could be wrong, but according to wiki (I had to look it up) regression is bug-related, not loop related like recursion.
If you mean iteration, then that is faster. But, recursion could give you a lot cleaner code, so it's basically okay to write big functions recursive, large functions iterative.
>it's basically okay to write big functions recursive, large functions iterative
What if I want to write a large function recursive and a big function iterative? :D