Ok I solved it. Now i am trying do method remove.
Type: Posts; User: Koren3
Ok I solved it. Now i am trying do method remove.
I changed it:
public class BinarySearchTree {
private Node root;
private Node parent;
private Node node;
public boolean isEmpty()
I changed it but nothing...
Did you mean this?
public class BinarySearchTree {
private Node root;
private Node parent;
private Node node;
Ohh yes. Thank you.
I wrote this code:
public boolean isEmpty()
{
return root==null ;
}
private Node insertData(Node node, int data)
Thank you but Donīt it do another way? Because I got UML diagram with methods and method insert look like insert (int).
UML diagram on picture: Imageshack - treeu
Hello, I have to do Binary Search Tree. I found on internet a lot of versions, but i need it just simple. First time, I need help with method insert.
My code:
public class BinarySearchTree {
...