This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BinarySearchTree { | |
public static Node root; | |
public BinarySearchTree(){ | |
this.root = null; | |
} | |
public boolean find(int id){ | |
Node current = root; | |
while(current!=null){ | |
if(current.data==id){ |