Re:The ancient world before computers had stacks or heaps
by Arnavion on Wednesday April 03, 2024 @01:01PM
(#39919945)
Tree traversal uses stacks / queues unless you're dealing with a small tree such that you're sure recursion won't blow your stack, or your algorithm can work with tail calls and your language guarantees TCO.
[ Parent
| on HN ]