Closed alexbingqi closed 3 years ago
To override the balance method, do we only need to consider the conditions specified by the question or we need to first consider those conditions, if those are not met, then we use other conditions to maintain the tree is still perfectly balanced?
@alexbingqi no need to balance the tree when those conditions are not met.
To override the balance method, do we only need to consider the conditions specified by the question or we need to first consider those conditions, if those are not met, then we use other conditions to maintain the tree is still perfectly balanced?