Q. Why are recursive functions considered slower than their iterative counterparts?

 

Answer =

Because of overhead of multiple function calls. And maintaining a stack for it.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post