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.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efe83173340271c502dd9f36299b6a9f7c84a9612f37f6dd0801605c9b512e15 |
|
MD5 | ba8cf27565d9f313319b2c7f4bb1a838 |
|
BLAKE2b-256 | b0382b08f606c79a24d9ed5946ec6758ce6e06b3e9b32312460084263022819b |