Skip to main content

No project description provided

Project description

Binary Search

This module allows the function of binary searching in strings, lists or tuples

Installation

Run the following to install:

pip install bisearch

Usage

import bisearch 

# Check if target exists within search range
bisearch.exist(target,field)

# Check where target is located within search range
bisearch.location(target,field)

Notes

when using location if the target does not exist within the field the function will return None

when using location if the field is a string it will return the target position within the sorted array of string

when using strings if there are multiple words make sure each word is seperated by one white space

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

bisearch-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

bisearch-0.0.1-py3-none-any.whl (3.0 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