Recursion Vs Loops
Posted
by sachin
on Stack Overflow
See other posts from Stack Overflow
or by sachin
Published on 2010-04-17T20:09:49Z
Indexed on
2010/04/17
20:13 UTC
Read the original article
Hit count: 513
I am trying to do work with examples on Trees as given here: http://cslibrary.stanford.edu/110/BinaryTrees.html These examples all solve problems via recursion, I wonder if we can provide a iterative solution for each one of them, meaning, can we always be sure that a problem which can be solved by recursion will also have a iterative solution, in general. If not, what example can we give to show a problem which can be solved only by recursion/Iteration?
--
© Stack Overflow or respective owner