Skip to content

Instantly share code, notes, and snippets.

View davidalejandro1223's full-sized avatar

David Aparicio davidalejandro1223

  • Colombia
View GitHub Profile
/**
* An implementation for Mergesort. Less efficient
* than Quicksort. Again, you'd just use Array.sort
* but if you found yourself unable to use that
* there's always this option.
*
* Tests with:
*
* var array = [];
* for(var i = 0; i < 20; i++) {