Skip to content

Instantly share code, notes, and snippets.

View vaer-k's full-sized avatar
🏠
Working from home

Vincent Raerek vaer-k

🏠
Working from home
View GitHub Profile
/**
* An implementation for Quicksort. Doesn't
* perform as well as the native Array.sort
* and also runs the risk of a stack overflow
*
* Tests with:
*
* var array = [];
* for(var i = 0; i < 20; i++) {
* array.push(Math.round(Math.random() * 100));