Hacker News new | ask | show | jobs
by Tainnor 1295 days ago
For large enough trees it's probably more efficient to instead just switch from preorder to postorder traversal instead of changing the whole tree.