5 ms·Is there a practical reason to do this in a real-world program?by kristov 4y agoIs there a practical reason to do this in a real-world program?saagarjha 4y agoSure, it’s the binary tree equivalent of reversing an array.Tainnor 4y agoFor large enough trees it's probably more efficient to instead just switch from preorder to postorder traversal instead of changing the whole tree.