Skip to content

Commit

Permalink
clarify the wording of an exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudkat committed May 30, 2024
1 parent 4cd5ace commit 03cb6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/part-11/4-more-recursion-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The variable `node_sum` is initialised to equal the value of the current node. T

Please write a function named `greatest_node(root: Node)` which takes the root node of a binary tree as its argument.

The function should return the node with the greatest value within the tree. The tree should be traversed recursively.
The function should return the value of the node with the greatest value within the tree. The tree should be traversed recursively.

Hint: the function `sum_of_nodes` in the example above may come in handy.

Expand Down

0 comments on commit 03cb6c3

Please sign in to comment.