Search:

Type: Posts; User: Koren3

Search: Search took 0.20 seconds.

  1. Replies
    9
    Views
    7,195

    Re: Binary Search Tree

    Ok I solved it. Now i am trying do method remove.
  2. Replies
    9
    Views
    7,195

    Re: Binary Search Tree

    I changed it:


    public class BinarySearchTree {
    private Node root;
    private Node parent;
    private Node node;


    public boolean isEmpty()
  3. Replies
    9
    Views
    7,195

    Re: Binary Search Tree

    I changed it but nothing...
    Did you mean this?


    public class BinarySearchTree {
    private Node root;
    private Node parent;
    private Node node;
  4. Replies
    9
    Views
    7,195

    Re: Binary Search Tree

    Ohh yes. Thank you.
    I wrote this code:


    public boolean isEmpty()
    {
    return root==null ;
    }

    private Node insertData(Node node, int data)
  5. Replies
    9
    Views
    7,195

    Re: Binary Search Tree

    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
  6. Replies
    9
    Views
    7,195

    Binary Search Tree

    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 {
    ...
Results 1 to 6 of 6