This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites.
I believe that line dereferences the array reference and creates a new array with the same 10,000 contents. With your recursive calls to quicksort, that probably eats up memory fast. There does not ...