Algorithms and Data Structures · Junior · Question 47 of 75

What is a leaf in a tree?

Explanation

Leaves are the end points of the hierarchy: files in a folder tree, text nodes in the DOM. The root is the only node without a parent.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 47

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