Search max value between 2 AVL nodes [duplicate]
问题 This question already has an answer here : AVL Tree: Finding the key with the smallest data values in keys between two values in O(logn) time (1 answer) Closed 4 years ago . I have an AVL tree while each node consists of: Key Value The AVL tree is ordered by the keys . So if I got 2 keys and now I want to find the maximum value between those 2 keys. I've tried adding additional information to each node like the max value in the left subtree and same for the right subtree but I can't get the