HN2
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kristov
on Nov 24, 2022
|
parent
|
context
|
favorite
| on:
Inverting a binary tree using x64 assembly
Is there a practical reason to do this in a real-world program?
saagarjha
on Nov 24, 2022
[–]
Sure, it’s the binary tree equivalent of reversing an array.
Tainnor
on Nov 25, 2022
|
parent
[–]
For large enough trees it's probably more efficient to instead just switch from preorder to postorder traversal instead of changing the whole tree.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: