Skip to content

Commit b90f85c

Browse files
committed
minor fix
1 parent fe9db0a commit b90f85c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SourceCodes/0002_Tree/0001_BinarySearchTree.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Node* BinarySearchTree::_FindPredecessorNode(Node* node)
114114
node = nodeY;
115115
nodeY = nodeY->parent;
116116
}
117+
return nodeY;
117118
}
118119

119120
void BinarySearchTree::_Transplant(Node* nodeU, Node* nodeV)

0 commit comments

Comments
 (0)