Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BinaryTreeSearcher-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

BinaryTreeSearcher-1.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page