New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sort-types

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sort-types

Different types of sorts with their complexity and best/worst case scenarios.

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

Types of sorts

Different types of sorts with their complexity and best/worst case scenarios.

Has the following types of sorts

* Bubble sort
* Selection sort
* Insertion sort
* Merge sort
* Quick sort

Install

npm install 'sort-types';

If you want to play around, you may use the functions like this

import { bubbleSort } from 'sort-types';

bubbleSort([3,1,8,4,2]);

Few upcoming sorts

* Radix sort
* Bucket sort
* Heap sort

FYI

If you are wondering, how does sort() works,
it actually does quick-sort when converted to C++.

Keywords

bubbleSort

FAQs

Package last updated on 05 Mar 2018

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