1.0.6 • Published 2 years ago
ottoyd v1.0.6
NPM OTTOYD
Description
Welcome Onboard fellow Developer, This is where you will find NodeJS scripts where you are free to contribute too. You can Contribute by giving your scripts written in NodeJS and you think are amazing for other people to see.
Contribution Guidelines
The contribution guidelines are as per the guide HERE.
Instructions
- Fork this Repository
- Clone your forked repository
- Add your scripts
- Commit & Push
- Create a pull request
- Star this repository
- Wait for Pull Request to merge
- Celebrate, your first step into the open Source World and contribute more
Note: When you Add a project Add it to the README for ease of finding it
Note: Please do not put the project link to reference your local forked repo. Always link it to this repo after it's been merged with main.
Function
SN | Project | Author |
---|---|---|
1 | Unique Array | Ottoyd |
2 | Linear Search | Ottoyd |
3 | Binary Search | Ottoyd |
4 | Selection Sort | Ottoyd |
5 | Dictionary Sort | Ottoyd |
6 | Compact Moment | Ottoyd |
1. Unique Array Usage
console.log('==== tydUnique ====')
require("./index").tydUnique();
const tydUnique = [ 1,1,1,1,2];
console.log(tydUnique.unique());
2. Linear Search Usage
console.log('==== tydLinearSearch ====')
require("./index").tydLinearSearch();
const tydLinearSearch = [1,2,3,4,5,1];
console.log(tydLinearSearch.linearSearch(1));
3. Binary Search Usage
console.log('==== tydBinarySearch ====')
require("./index").tydBinarySearch();
const tydBinarySearch = [1,2,3,4,5,1];
console.log(tydBinarySearch.binarySearch(99));
4. Selection Sort Usage
console.log('==== tydDictionarySort ====')
require("./index").tydDictionarySort();
const tydDictionarySort = [ 'AERYYXXXZZZZZ', 'BENNY', 'J', 'JONJI' ];
console.log(tydDictionarySort.dictionarySort());
5. Dictionary Sort Usage
console.log('==== tydSelectionSort ====')
require("./index").tydSelectionSort();
const tydSelectionSort = [ 'AERYYXXXZZZZZ', 'BENNY', 'J', 'JONJI' ];
console.log(tydSelectionSort.selectionSort());