Browse Source

Add notions for the tree traversal exercises

pull/826/head
Augusto 3 years ago
parent
commit
c96169c4e3
  1. 6
      subjects/btreeapplyinorder/README.md
  2. 6
      subjects/btreeapplypostorder/README.md
  3. 6
      subjects/btreeapplypreorder/README.md

6
subjects/btreeapplyinorder/README.md

@ -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

6
subjects/btreeapplypostorder/README.md

@ -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

6
subjects/btreeapplypreorder/README.md

@ -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

Loading…
Cancel
Save