in reply to Iteratively deep copying a data structure

One can easily imagine where using recursion on a very large data structure would use up a lot of memory.

No, I can't. How deep is your structure? 10 levels? Even if it was 100 levels deep, that's very little memory.

  • Comment on Re: Iteratively deep copying a data structure

Replies are listed 'Best First'.
Re^2: Iteratively deep copying a data structure
by telcontar (Beadle) on Jun 09, 2007 at 16:16 UTC
    You're right, it was silly of me to write that. However, if I may say so, the intent of the original post was just to see how an iterative solution could be implemented more efficiently or succinctly, as pointless as that may seem.