All Projects → sharadbhat → Nodorithm

sharadbhat / Nodorithm

Licence: MIT License
NPM package for algorithms.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nodorithm

Data-Structures-and-Algorithms
Data Structures and Algorithms implementation in Python
Stars: ✭ 31 (+40.91%)
Mutual labels:  sorting-algorithms, searching-algorithms
Java-Questions-and-Solutions
This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
Stars: ✭ 34 (+54.55%)
Mutual labels:  sorting-algorithms, searching-algorithms
alvito
Alvito - An Algorithm Visualization Tool for Python
Stars: ✭ 52 (+136.36%)
Mutual labels:  sorting-algorithms, searching-algorithms
Algorithms
Short explanations and implementations of different algorithms in multiple languages
Stars: ✭ 37 (+68.18%)
Mutual labels:  sorting-algorithms, searching-algorithms
Learn-Data Structure-Algorithm-by-Javascript
Data Structure and Algorithm explanations with Implementations by Javascript
Stars: ✭ 55 (+150%)
Mutual labels:  sorting-algorithms, searching-algorithms
C Sharp Algorithms
📚 📈 Plug-and-play class-library project of standard Data Structures and Algorithms in C#
Stars: ✭ 4,684 (+21190.91%)
Mutual labels:  sorting-algorithms, searching-algorithms
python3-algorithms
Python3 数据结构与算法的介绍及应用。1. 数据结构:数组、链表、栈、队列、树、堆、图; 2. 典型排序算法:冒泡排序、选择排序、插入排序、希尔排序、堆排序、归并排序、快速排序、桶排序、计数排序、基数排序; 3. 查找算法: 顺序查找、二分查找、哈希表查找、二叉查找树、平衡二叉查找树(AVL树、红黑树)、平衡多路查找树(B树、B+树);4. LeetCode 和《剑指Offer》刷题、多种方法的题解
Stars: ✭ 70 (+218.18%)
Mutual labels:  sorting-algorithms, searching-algorithms
interview-cookbook
A playground for learning DataStructures, Algorithms, and Object-Oriented Concepts.
Stars: ✭ 25 (+13.64%)
Mutual labels:  sorting-algorithms, searching-algorithms
programminginpython.com
This repo consists code of all the programs discussed at programminginpython.com website
Stars: ✭ 60 (+172.73%)
Mutual labels:  sorting-algorithms, searching-algorithms
Data-Structures-Algorithms-Handbook
A series of important questions with solutions to crack the coding interview and ace it!
Stars: ✭ 30 (+36.36%)
Mutual labels:  sorting-algorithms, searching-algorithms
odoc
Next.js based Static 📓 Documentation Site Generator
Stars: ✭ 17 (-22.73%)
Mutual labels:  npm-package
impression
👀Element view notifier
Stars: ✭ 77 (+250%)
Mutual labels:  npm-package
mdi-cli
Generate material design icons from the command line
Stars: ✭ 68 (+209.09%)
Mutual labels:  npm-package
nuxt-mail
Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Stars: ✭ 62 (+181.82%)
Mutual labels:  npm-package
img2gcode
convert jpg, png,gif to gcode with nodejs and jimp
Stars: ✭ 31 (+40.91%)
Mutual labels:  npm-package
hapi-sentry
A hapi plugin for request error logging to Sentry
Stars: ✭ 24 (+9.09%)
Mutual labels:  npm-package
js-id-number
JavaScript ID Number Toolkit | A collection of identification number validators with uniform interfaces for JavaScript.
Stars: ✭ 22 (+0%)
Mutual labels:  npm-package
ngx-deploy-npm
Publish your libraries to NPM with just one command
Stars: ✭ 70 (+218.18%)
Mutual labels:  npm-package
pathfinding-visualizer
🔍 A friendly visualizer for some search algorithms, like DFS, BDS, Greedy and A*
Stars: ✭ 21 (-4.55%)
Mutual labels:  searching-algorithms
Sorting-Algorithms
Sorting algorithms in multiple languages.
Stars: ✭ 112 (+409.09%)
Mutual labels:  sorting-algorithms

Nodorithm

An NPM package for commonly used algorithms.

GitHub repository

Get started

To install,

npm install nodorithm

Algorithms

Searching
  • Binary Search
  • Interpolation Search
  • Jump Search
  • Linear Search
Sorting
  • Bubble Sort
  • Comb Sort
  • Counting Sort
  • Heap Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Selection Sort
  • Shell Sort
String
  • Capitalize First Letter

Usage

To use the package,

const nodorithm = require('nodorithm');
Searching

Each algorithm takes 2 arguments.

Binary Search
var result = (nodorithm.search.binarySearch(array=[1,2,3,4], key=3));
console.log(result);
Interpolation Search
var result = (nodorithm.search.interpolationSearch(array=[1,2,3,4], key=3));
console.log(result);
Jump Search
var result = (nodorithm.search.jumpSearch(array=[1,2,3,4], key=3));
console.log(result);
Linear Search
var result = (nodorithm.search.linearSearch(array=[1,2,3,4], key=3));
console.log(result);
Sorting

Each algorithm takes 1 argument.

Bubble Sort
var result = (nodorithm.sort.bubbleSort(array=[4,2,3,1]));
console.log(result);
Comb Sort
var result = (nodorithm.sort.combSort(array=[4,2,3,1]));
console.log(result);
Counting Sort
var result = (nodorithm.sort.countingSort(array=[4,2,3,1]));
console.log(result);
Heap Sort
var result = (nodorithm.sort.heapSort(array=[4,2,3,1]));
console.log(result);
Insertion Sort
var result = (nodorithm.sort.insertionSort(array=[4,2,3,1]));
console.log(result);
Merge Sort
var result = (nodorithm.sort.mergeSort(array=[4,2,3,1]));
console.log(result);
Quick Sort
var result = (nodorithm.sort.quickSort(array=[4,2,3,1]));
console.log(result);
Selection Sort
var result = (nodorithm.sort.selectionSort(array=[4,2,3,1]));
console.log(result);
Shell Sort
var result = (nodorithm.sort.shellSort(array=[4,2,3,1]));
console.log(result);
String

Each algorithm takes 1 argument.

Capitalize First Letter
var result = (nodorithm.string.capitalizeFirstLetter(string="abcd efgh"));
console.log(result);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].