No project description provided
Project description
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 | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datastructures-0.1.0.tar.gz.
File metadata
- Download URL: datastructures-0.1.0.tar.gz
- Upload date:
- Size: 88.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4835ff619e99d08f084f05bbb894b72481599f7d5c9a512cae5bbdcce71bc565
|
|
| MD5 |
044484867c800b7affcbc8762b0f4952
|
|
| BLAKE2b-256 |
e96f2e5805f8d459dbf34e193beba32b2416cd8a01914d3f53897431000ff8c3
|
File details
Details for the file datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl.
File metadata
- Download URL: datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl
- Upload date:
- Size: 138.5 kB
- Tags: CPython 3.5m, macOS 10.11+ x86-64
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7bf08a8a9f5f87071e852cc60936737e92516356517bda023537e34616df9d
|
|
| MD5 |
d995e8122e02875842f2c41fdbd82948
|
|
| BLAKE2b-256 |
452a6730b67bc456ed56860436de26a4594029ecd73899f6a0b7c10df41f232b
|