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


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl (138.5 kB) Copy SHA256 hash SHA256 Wheel 3.5
datastructures-0.1.0.tar.gz (88.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page