Search:

Type: Posts; User: scottb80

Search: Search took 0.12 seconds.

  1. [SOLVED] Re: Can someone verify if this code for deleting a BST works?

    Can't believe I didn't see that! Yea my tree only moves down. Thanks a million.
  2. [SOLVED] Can someone verify if this code for deleting a BST works?

    /** Clear tree method
    * @param a node
    */
    private void clear(Node x) {
    if(x.left != null) {
    x = x.left;
    clear(x);
    }
    if(x.right != null) {
    x = x.right;
Results 1 to 2 of 2