mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-09 03:59:38 +08:00
Update AVLTree.java
This commit is contained in:
@ -202,7 +202,7 @@ public class AVLTree {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean search(int key) {
|
||||
public boolean search(int key) {
|
||||
Node result = searchHelper(this.root,key);
|
||||
if(result != null)
|
||||
return true ;
|
||||
|
Reference in New Issue
Block a user