adding post order animation

This commit is contained in:
Jidong Xiao
2025-04-11 20:38:22 -04:00
committed by JamesFlare1212
parent 302a2f176d
commit 3cf7288c34

View File

@@ -238,6 +238,8 @@ Postorder Traversal using Morris Traversal:
4 6 7 5 2 9 8 3 1
```
Play this [animation](https://jidongxiao.github.io/CSCI1200-DataStructures/animations/trees/morris/morrisPostOrder.html) to understand how this works.
## Time and Space Complexity in Morris Traversal (in-order, pre-order, post-order)
- Time Complexity: O(N) (each node is visited at most twice)