fast-sort-search
v1.2.0
Published
This is the package for searching and sorting in array.
Downloads
3
Maintainers
Readme
Array Sort and Search Package
A simple npm package for sorting and Searching arrays using the bubble sort and Linear Search algorithm.
Installation
You can install the package using npm:
npm i fast-sort-search
Usage
Import the package and use the fastSort function to sort arrays:
const { fastSort } = require('fast-sort-search');
const unsortedArray = [5, 2, 9, 1, 5, 6];
const sortedArray = fastSort(unsortedArray);
console.log(sortedArray); // Output: [1, 2, 5, 5, 6, 9]
#Note: This package also work with alphabets/Strings
# Similar way you can use fastSearch() for searching Number or String Positions in Array and
# It will return index.
## Contributing
Contributions are welcome! Feel free to submit issues or pull requests.