Hi
I need one example on regression. Also tell between recursion and regression which one is faster?

Recommended Answers

All 2 Replies

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.