Hello all
i have legacy code that preform Recursion calling this Recursion is very heavy and long and sometimes it gives me stack overflow exceptions
i wander in general or algorithmic view can i convert Recursion flow to linear ( not Recursion) ?
Thanks
In general yes, a recursive algorithm can be rewritten as a non-recursive algorithm using loops.
If you post the recursive algorithm someone may well be able to help you sort it out.