mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-08 23:23:05 +08:00
Update operations_on_datastructures/inorder_successor_of_bst.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
* OR, we can also say in case if BST, find the minimum of the subtree
|
||||
* for a given node.
|
||||
*
|
||||
* ### Case 2
|
||||
*
|
||||
* The given node does not have a right node/subtree
|
||||
* ### Case 2: The given node does not have a right node/subtree
|
||||
*
|
||||
* #### Method 1: Use parent pointer (store the address of parent nodes)
|
||||
* If a node does not have right subtree, and we already visited the node
|
||||
|
||||
Reference in New Issue
Block a user