Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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()
Metadata
Release files for datastructures 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datastructures-0.1.0.tar.gz | 88.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | macOS 10.11+ x86-64 | Details |
Total release size: 226.5 kB
Release files / datastructures-0.1.0.tar.gz
| Download URL | datastructures-0.1.0.tar.gz |
|---|---|
| Size | 88.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4835ff619e99d08f084f05bbb894b72481599f7d5c9a512cae5bbdcce71bc565
|
|
BLAKE2b-256 checksum How to use checksums |
e96f2e5805f8d459dbf34e193beba32b2416cd8a01914d3f53897431000ff8c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl
| Download URL | datastructures-0.1.0-cp35-cp35m-macosx_10_11_x86_64.whl |
|---|---|
| Size | 138.5 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64 |
|
SHA-256 checksum How to use checksums |
fa7bf08a8a9f5f87071e852cc60936737e92516356517bda023537e34616df9d
|
|
BLAKE2b-256 checksum How to use checksums |
452a6730b67bc456ed56860436de26a4594029ecd73899f6a0b7c10df41f232b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |