Skip to content

chausme/simple-binary-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Binary Search

npm

Simple binary search algorithm implementation

Install

npm install simple-binary-search
yarn add simple-binary-search

Usage

import binarySearch from 'simple-binary-search';

binarySearch([1, 3, 6, 10, 24], 3); // 1
binarySearch([1, 3, 6, 10, 24], 33); // -1

About

Simple binary search algorithm implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published