Question DSA-BST-0011
MediumWhat is the balance factor of a node in an AVL tree?
- A.
Height of left subtree − height of right subtree, which must be −1, 0 or 1
- B.
Value of the node
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Binary Search Trees question
What is the balance factor of a node in an AVL tree?
Height of left subtree − height of right subtree, which must be −1, 0 or 1
Value of the node
Sign up free to see the answer and a step-by-step explanation.
Depth of the node
Number of children