Skip to main content

BinaryTree <T>

A type that represents a binary tree (which has a maximum of 2 children; left, and right).

Index

Properties

Properties

optionalleft

left?: BinaryTree<T>

The left child of the tree.

optionalright

right?: BinaryTree<T>

The right child of the tree.

value

value: T

The value of the tree node.