A tree is a data structure consisting of a set of linked nodes that represent a hierarchical tree structure. Each node is linked to others via parent-children relationship. The first node in the tree is the root, whereas nodes without any children are the leaves. The main operations of a tree data structure are:insert, remove and find.

3m read timeFrom 30secondsofcode.org
Post cover image
Table of contents
DefinitionImplementation

Sort: