mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-09 20:20:56 +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);
|
Node result = searchHelper(this.root,key);
|
||||||
if(result != null)
|
if(result != null)
|
||||||
return true ;
|
return true ;
|
||||||
|
Reference in New Issue
Block a user