Skip to content

Instantly share code, notes, and snippets.

@ernesto-jimenez
Created December 17, 2009 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ernesto-jimenez/258708 to your computer and use it in GitHub Desktop.
Save ernesto-jimenez/258708 to your computer and use it in GitHub Desktop.
% Fue ver implementado el QuickSort en Erlang
% Y acto seguido estaba comprando un libro de Erlang en Amazon
quicksort([]) -> [];
quicksort([Pivot|Rest]) ->
quicksort([Front || Front <- Rest, Front < Pivot])
++ [Pivot] ++
quicksort([Back || Back <- Rest, Back >= Pivot])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment