Skip to main content

No project description provided

Project description

ci

Binary Tree

A binary tree implementation is available:

from datastructures import Tree, Node

tree = Tree()
tree.size()        // 0
tree.max_depth()   // 0
tree.root          // None
root = tree.add()  // Node
root.left = Node()
tree.size()        // 2
tree.max_depth()   // 2

To check if the tree is a binary search tree:

tree.is_bst()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datastructures, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl (138.5 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size datastructures-0.1.0.tar.gz (88.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page