The following technique enables both preorder and postorder tree traversals (among others) with one parameterised fold. Arguably, it is mostly interesting when the node that contribute to the updating of the accumulator are not many.
-
Notifications
You must be signed in to change notification settings - Fork 0
Preorder and postorder tree traversals
License
rinderknecht/Tree-traversals
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Preorder and postorder tree traversals
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published