A simple binary tree search library
Project description
this is a trial library for python
** HOW TO USE **
install the package by running pip install BinaryTreeSearch
then import the package as from BinaryTreeSearch.BinaryTreeClass import BinaryTreeSearch
create an instance of the class as tree = BinaryTreeSearch();
then call the binarySearch method on the instance
the method takes in two arguement -->> the tree you want to search through -->> the item or number you are searching for
example from BinaryTreeSearch.BinaryTreeClass import BinaryTreeSearch
tree = BinaryTreeSearch();
tree_list = [3, [8, [5, None, 11], 94], [7, 15, 29]] isNumber = tree.binarySearch(tree_list, 11)
print(isNumber)
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
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 BinaryTreeSearcher-1.0.5.tar.gz.
File metadata
- Download URL: BinaryTreeSearcher-1.0.5.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91fe33b3e60af1badfbcc876621be03ab95eb7a4bd69d66b3de233403df667fc
|
|
| MD5 |
cac25d5917a7a5708d469a348f8cc45e
|
|
| BLAKE2b-256 |
165fdd940ccddfc70c56d32f6761008479df24c9b70541f61094f630e218c170
|
File details
Details for the file BinaryTreeSearcher-1.0.5-py3-none-any.whl.
File metadata
- Download URL: BinaryTreeSearcher-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efe83173340271c502dd9f36299b6a9f7c84a9612f37f6dd0801605c9b512e15
|
|
| MD5 |
ba8cf27565d9f313319b2c7f4bb1a838
|
|
| BLAKE2b-256 |
b0382b08f606c79a24d9ed5946ec6758ce6e06b3e9b32312460084263022819b
|