Skip to content

Commit 48bfc1a

Browse files
author
Zhenchao Gan
authored
Merge pull request gzc#156 from praveenmylavarapu/master
Fixed a typo
2 parents 1525541 + 7ff292b commit 48bfc1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

C12-Binary-Search-Trees/12.2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If a successor has left child, then the left child should be successor. The same
5050
Consider a binary search tree T whose keys are distinct. Show that if the right subtree of a node x in T is empty and x has a successor y, then y is the lowest ancestor of x whose left child is also an ancestor of x. (Recall that every node is its own ancestor.)
5151

5252
### `Answer`
53-
If y is the lowerst ancestor of x whose left child is also an ancestor of x, then x must be the node with the maximum key in the left subtree of y, since if we walk from y to x, we never walk left except at the first step.
53+
If y is the lowest ancestor of x whose left child is also an ancestor of x, then x must be the node with the maximum key in the left subtree of y, since if we walk from y to x, we never walk left except at the first step.
5454

5555
### Exercises 12.2-7
5656
***

0 commit comments

Comments
 (0)