binary-search-package5001

1.0.1 • Public • Published

Binary Search Package

A simple and lightweight npm package for performing binary search on sorted arrays in JavaScript.


Features

  • Efficiently search for elements in a sorted array.
  • Easy to use and integrate.
  • Lightweight and fast.

Installation

Install the package using npm:

npm i binary-search-package-219new

Usage

Import the package and use the binarySearch function:


const binarySearch = require('binary-search-package-219new');

// Example usage
const sortedArray = [1, 3, 5, 7, 9];
const target = 7;

const index = binarySearch(sortedArray, target);
console.log(index); // Output: 3

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Praveen Email: paru2192000@gmail.com GitHub: Praveen

Readme

Keywords

none

Package Sidebar

Install

npm i binary-search-package5001

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.69 kB

Total Files

4

Last publish

Collaborators

  • shubham075