Add notions for the tree traversal exercises

This commit is contained in:
Augusto 2021-06-08 13:55:01 +01:00
parent 9fae2e5968
commit c96169c4e3
3 changed files with 15 additions and 3 deletions

View File

@ -2,7 +2,11 @@
### Instructions
Write a function that applies a function in order to each element in the tree (see "in order tree walks").
Write a function that applies a given function `f`, **in order**, to each element in the tree.
### Notions
- [Tree Traversal](https://en.wikipedia.org/wiki/Tree_traversal)
### Expected function

View File

@ -2,7 +2,11 @@
### Instructions
Write a function that applies a function using a postorder walk to each element in the tree.
Write a function that applies a given function `f`, to each element in the tree using a postorder walk.
### Notions
- [Tree Traversal](https://en.wikipedia.org/wiki/Tree_traversal)
### Expected function

View File

@ -2,7 +2,11 @@
### Instructions
Write a function that applies a function using a preorder walk to each element in the tree.
Write a function that applies a given function `f` to each element in the tree using a preorder walk.
### Notions
- [Tree Traversal](https://en.wikipedia.org/wiki/Tree_traversal)
### Expected function