Skip to content

Instantly share code, notes, and snippets.

@matt-stj
Forked from stevekinney/gist:9e9cfeb225c8133fda73
Last active February 16, 2016 22:06
Show Gist options
  • Save matt-stj/7b3d4cdd241a7b886def to your computer and use it in GitHub Desktop.
Save matt-stj/7b3d4cdd241a7b886def to your computer and use it in GitHub Desktop.
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
Speed, resources required to perform, stability, and size of incoming dataset are all things that must be taken into consideration when using sorting algorithms. There's no single perfect solution -- the best algorithm depends on what data you have coming in, but insertion or merge sort offer the best performance + reliabililty. Bubble sort === the worst.
@rrgayhart
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment