Hacker News new | ask | show | jobs
by leovonl 3713 days ago
You don't reverse a binary tree, you iterate in the opposite direction (right-to-left). Reversing is generally a pointless operation, and which would be much more efficient if not done at all.