Search:

Type: Posts; User: Sergiu Nistor

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    5,284

    Solved

    Yes the problem was with the pointer of the node above the one being deleted. Thanks for pointing :) that out. So I had to check while remaining on the node above the one being deleted if the...
  2. Replies
    6
    Views
    5,284

    The BST is not balanced, the first number entered...

    The BST is not balanced, the first number entered is the root and the rest are inserted accordingly (smaller to the left, bigger to the right) so when BST is 4,3,2,1 4 is the root and every other...
  3. Replies
    6
    Views
    5,284

    In a BST with 1,2,3 the function should delete...

    In a BST with 1,2,3 the function should delete 1(root). The problem seems to be in the else block. If I make a BST with 4,3,2,1 t is on node 1 when it reaches the else block and the program crashes...
  4. Replies
    6
    Views
    5,284

    delete minimum in BST problem

    struct node
    { int data;
    struct node* left;
    struct node* right;
    };
    in main i create struct node* root, and insert other nodes, after this I apply this function to root:

    void...
Results 1 to 4 of 4