Sorting algorithms/Insertion sort: Difference between revisions

Added to <20 category
(Added Perl version.)
(Added to <20 category)
Line 1:
[[Category:Less Than 20 Examples]]{{task}}
{{task}}
{{Sorting Algorithm}}
An O(n^2) sorting algorithm which moves elements one at a time into the correct position. The algorithm is as follows (from the [http://en.wikipedia.org/wiki/Insertion_sort#Algorithm wikipedia]):
Anonymous user