We can derive a simple (?) rule for determining the node in the binary search tree that immediately follows node i in the sorted order (returns 0 for max element in tree):
Running time in terms of the height of the tree?
How could this be used to delete an element from the tree?