Giter Site home page Giter Site logo

arr-sorting's People

Contributors

boristane avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

codacy-badger

arr-sorting's Issues

Add support for shell sort

Sorts an array using the shell sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
shell(arr); // [2, 5, 5, 6, 10, 32]
shell(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for introsort

Sorts an array using the introsort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
intro(arr); // [2, 5, 5, 6, 10, 32]
intro(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Reference

Update README.md.

Add support for smooth sort

Sorts an array using the smooth sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
smooth(arr); // [2, 5, 5, 6, 10, 32]
smooth(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for quick sort

Sorts an array using the quick sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
quick(arr); // [2, 5, 5, 6, 10, 32]
quick(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for tree sort

Sorts an array using the tree sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
tree(arr); // [2, 5, 5, 6, 10, 32]
tree(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for timsort

Sorts an array using the timsort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
tim(arr); // [2, 5, 5, 6, 10, 32]
tim(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Reference

Update README.md.

Add support for binary sort

Sorts an array using the binary sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
binary(arr); // [2, 5, 5, 6, 10, 32]
binary(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Reference.

Update README.md.

Add support for merge sort

Sorts an array using the merge sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
merge(arr); // [2, 5, 5, 6, 10, 32]
merge(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for selection sort

Sorts an array using the selection sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
selection(arr); // [2, 5, 5, 6, 10, 32]
selection(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for insertion sort

Sorts an array using the insertion sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
insertion(arr); // [2, 5, 5, 6, 10, 32]
insertion(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Add support for heap sort

Sorts an array using the heap sort algorithm.

const arr = [2, 5, 10, 5, 32, 6];
heap(arr); // [2, 5, 5, 6, 10, 32]
heap(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]

Update README.md.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.