Title Inserting binary tree
Catalog Type SLCItem
Persistent ID https://adapt2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=py_trees_insert_binarytree
Platform Name PCEX
Features
Description In a BinaryTree, adding new nodes to the tree is an important capability to have. Construct a simple implementation of a BinaryTree consisting of an __init__ method and an insertLeft method, which adds new nodes to the tree to the left of the root.
Keywords binary search, recursion, trees
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://adapt2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=py_trees_insert_binarytree
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview