@@ -151,11 +151,11 @@ end
151
151
"""
152
152
BinaryTrees.minnode(tree)
153
153
154
- Find the ` node` with the smallest ` key` in the `tree`.
154
+ Find the node with the smallest key in the `tree`.
155
155
156
156
BinaryTrees.minnode(node)
157
157
158
- Find the ` node` with the smallest ` key` in the subtree rooted at `node`.
158
+ Find the node with the smallest key in the subtree rooted at `node`.
159
159
If `nothing` is provided, `nothing` is returned.
160
160
"""
161
161
minnode (tree:: BinaryTree ) = minnode (root (tree))
@@ -170,11 +170,11 @@ minnode(node::Nothing) = nothing
170
170
"""
171
171
BinaryTrees.maxnode(tree)
172
172
173
- Find the ` node` with the maximum ` key` in the `tree`.
173
+ Find the node with the maximum key in the `tree`.
174
174
175
175
BinaryTrees.maxnode(node)
176
176
177
- Find the ` node` with the maximum ` key` in the subtree rooted at `node`.
177
+ Find the node with the maximum key in the subtree rooted at `node`.
178
178
If `nothing` is provided, `nothing` is returned.
179
179
"""
180
180
maxnode (tree:: BinaryTree ) = maxnode (root (tree))
@@ -189,10 +189,10 @@ maxnode(node::Nothing) = nothing
189
189
"""
190
190
BinaryTrees.prevnext(tree, k)
191
191
192
- Returns a ` tuple` of each ` node` immediately before
193
- and after the `node` with ` key`, `k` within `tree `.
192
+ Returns a tuple of each node immediately before
193
+ and after the `tree` node with key `k`.
194
194
195
- If an adjacent ` node` does not exist, `nothing` is returned in its place.
195
+ If an adjacent node does not exist, `nothing` is returned in its place.
196
196
If `k` is `nothing`, returns `(nothing, nothing)`.
197
197
"""
198
198
function prevnext (tree:: BinaryTree , k)
0 commit comments