From c96169c4e37705ebbad5cfd192cc3593790c880e Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 8 Jun 2021 13:55:01 +0100 Subject: [PATCH] Add notions for the tree traversal exercises --- subjects/btreeapplyinorder/README.md | 6 +++++- subjects/btreeapplypostorder/README.md | 6 +++++- subjects/btreeapplypreorder/README.md | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/subjects/btreeapplyinorder/README.md b/subjects/btreeapplyinorder/README.md index ac93b868f..4b4c99f1d 100644 --- a/subjects/btreeapplyinorder/README.md +++ b/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 diff --git a/subjects/btreeapplypostorder/README.md b/subjects/btreeapplypostorder/README.md index 80bf85b90..4c5f6121b 100644 --- a/subjects/btreeapplypostorder/README.md +++ b/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 diff --git a/subjects/btreeapplypreorder/README.md b/subjects/btreeapplypreorder/README.md index b60cd9a5a..5c9f154a6 100644 --- a/subjects/btreeapplypreorder/README.md +++ b/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