Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pangiole/algojs
Algorithms in Javascript
https://github.com/pangiole/algojs
Last synced: 30 days ago
JSON representation
Algorithms in Javascript
- Host: GitHub
- URL: https://github.com/pangiole/algojs
- Owner: pangiole
- License: unlicense
- Created: 2016-02-19T22:39:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T23:45:38.000Z (almost 9 years ago)
- Last Synced: 2024-10-03T15:38:27.376Z (3 months ago)
- Language: JavaScript
- Homepage: http://angiolep.github.io/algojs/
- Size: 441 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# algojs
[![Build Status][travis-image]][travis-url]
It provides Javascript implementation of fundamental data types, algorithms, and data structures.
## Examples
Here there are some examples. API docs are published here.```
npm install algojs --save
```### Sorting
```javascript
var sort = require('algojs-sorting').insertionSort;var array = [7,2,4,3,1,5,6,8];
sort(array);
// array is now sorted
```### Others
```javascript
var algojs = require('algojs');var points = [];
var convexHull = algojs.grahamScan(points);
```[travis-image]: https://travis-ci.org/angiolep/algojs.svg?branch=master
[travis-url]: https://travis-ci.org/angiolep/algojs