BinaryTree: A Basic Binary Tree

Learn about BinaryTree implementation.

The simplest way to represent a node, u, in a binary tree is to explicitly store the (at most three) neighbours of u:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy