Update operations_on_datastructures/inorder_successor_of_bst.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Nitin Sharma
2021-07-12 13:44:40 +05:30
committed by GitHub
parent 026d337999
commit 872bc4c7bc

View File

@@ -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