Socket
Book a DemoInstallSign in
Socket

selectionsort

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selectionsort

Selection sort with O(n^2) time complexity

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

NPM version Build Status Dependency Status

Selection sort with O(n^2) time complexity based on javascript-algorithms.

Install

$ npm install --save selectionsort

Usage

var selectionsort = require('selectionsort');

selectionsort([6,4,9,3,1,7]); 
// => [1,3,4,6,7,9]

selectionsort([5, 1, 12, -5, 16, 2, 12, 14]);
// => [-5, 1, 2, 5, 12, 12, 14, 16]

License

MIT © Addy Osmani

Keywords

selectionsort

FAQs

Package last updated on 03 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts