forked from bnoguchi/node-binary-search
-
Notifications
You must be signed in to change notification settings - Fork 0
An addon to node.js that provides a binary search function that runs in native C++.
License
penela/node-binary-search
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
About
An addon to node.js that provides a binary search function that runs in native C++.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published