top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Converting a recursive function into iterative function?

+5 votes
555 views

Say I have a function which is written in recursive way which is costly way of doing the things. Now I want to convert the recursive function into iterative one. Is there a standard approach which can be applied to all the functions..

posted Dec 6, 2013 by Salil Agrawal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

I think there is not standard approach, it depends, how complex the recursive function is??
But one thing is sure that it is always possible to convert a recursive function into iterative.

answer Jan 13, 2014 by Atul Mishra
...