Algorithms and Data Structures · Junior · Question 46 of 75

What is a tree in data structures?

Explanation

A tree has no cycles and exactly one path between any two nodes. Examples: the DOM, the file system, a JSON object. A general network of nodes with possible cycles is a graph.

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 46

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