binarySearch

0.0.3 • Public • Published

Provides a binarySearch function for node that runs in C++. Only works on arrays of ints.

To use:

cd src node-waf configure build

Then in your js file (see test/test.js for a full example): var binarySearch = require("/path/to/this/repo/build/default/binarySearch").binarySearch; var arr = [1,2,3,4,5,6,7,8,9,10]; var matchingIndex = binarySearch(arr, 5); // arr[matchingIndex] === 5 => true

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0
  • 0.0.2
    0
  • 0.0.3
    0

Package Sidebar

Install

npm i binarySearch

Weekly Downloads

0

Version

0.0.3

License

none

Last publish

Collaborators

  • bnoguchi