AVL Tree error at calculating the balance factor (FB) in my code
I’m trying to implement a simple AVL tree with insertions and deletions in C++ but my code isn’t getting the balance factor, or as some use, height, of each node correctly.
I’m trying to implement a simple AVL tree with insertions and deletions in C++ but my code isn’t getting the balance factor, or as some use, height, of each node correctly.