Skip to content

Instantly share code, notes, and snippets.

@tjkomor
Forked from stevekinney/gist:9e9cfeb225c8133fda73
Last active February 9, 2016 20:36
Show Gist options
  • Save tjkomor/569a86b8cc8b98ea113d to your computer and use it in GitHub Desktop.
Save tjkomor/569a86b8cc8b98ea113d 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?"
Rule #1, never ever use bubble sort. This sorting algorithm is simply too slow and either Insertion sort or Merge sort is the better option 99.999% of the time. Insertion sort is a reasonably goos sorting algortihm if the data set you are dealing with is already mostly sorted. However, if you are working with a really large data set, merge sort might be the better option.
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you.
@rrgayhart
Copy link

👍

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