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.

Source Distribution

datastructures-0.1.0.tar.gz (88.0 kB view details)

Uploaded Source

Built Distribution

datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl (138.5 kB view details)

Uploaded CPython 3.5m macOS 10.11+ x86-64

File details

Details for the file datastructures-0.1.0.tar.gz.

File metadata

File hashes

Hashes for datastructures-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4835ff619e99d08f084f05bbb894b72481599f7d5c9a512cae5bbdcce71bc565
MD5 044484867c800b7affcbc8762b0f4952
BLAKE2b-256 e96f2e5805f8d459dbf34e193beba32b2416cd8a01914d3f53897431000ff8c3

See more details on using hashes here.

File details

Details for the file datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 fa7bf08a8a9f5f87071e852cc60936737e92516356517bda023537e34616df9d
MD5 d995e8122e02875842f2c41fdbd82948
BLAKE2b-256 452a6730b67bc456ed56860436de26a4594029ecd73899f6a0b7c10df41f232b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page