Algorithms and Data Structures · Junior · Question 48 of 75

What is the height of a tree?

Explanation

Height determines the cost of many operations: in a balanced binary search tree it's about log₂ n, in a degenerate one (a "stick") it's n.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 48

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz