emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[QZ#4] the implementation #106

Closed alexbingqi closed 3 years ago

alexbingqi commented 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?

jdchoi77 commented 3 years ago

@alexbingqi no need to balance the tree when those conditions are not met.