I have a balanced AVL tree with integer values and a segment [L, R].
I would like to remove all the nodes with values from this range and rebalance the tree, so that the remaining nodes would form a balanced AVL tree.
What would be the computational complexity of this operation?