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
Hashes for BinaryTreeSearcher-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2be3b1ccb9dd25763bfe4905150b733de2c7b710095927c07d0d402dba25a5 |
|
MD5 | 3ca8add9d06fba8b21445eb1832827bd |
|
BLAKE2b-256 | bb0a5870b34df6391bdb4e84649cd742a10f85176a896baf71aaf3e83e9f9a08 |