tag:blogger.com,1999:blog-6314876008291942531.post7693433167226269976..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: Implement a tree visit with no recursion and no stackUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6314876008291942531.post-61101034277464581802010-08-11T16:18:32.651-07:002010-08-11T16:18:32.651-07:00I was taught both at school.
Using the runtime sta...I was taught both at school.<br />Using the runtime stack has several advantages though: it's typically faster, it's easier to write, and it works for any recursive structure (think containers of containers), without the need to add parent pointers.Mathias Gaunardhttps://www.blogger.com/profile/05052622266785164907noreply@blogger.com