Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save julyytran/a15b130057d8f0c526cd1d1357b71374 to your computer and use it in GitHub Desktop.
Save julyytran/a15b130057d8f0c526cd1d1357b71374 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?"
* Need to consider: space, time, type of data
*insertion - good for small sets of data/if it's mostly already sorted, compares what needs to be sorted
*bubble - slow, checks through every item, no bueno
*merge - multi-branch (splits array) recursive sort, fast and stable, not going to work with a ton of data if you are doing it in the browser
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment