Insertion Sort

Download

Download jar file or use maven. psjava requires Java 1.6 (or above)

<dependency>
    <groupId>org.psjava</groupId>
    <artifactId>psjava</artifactId>
    <version>0.1.19</version>
</dependency>

Example Code

MutableArray<Integer> array = MutableArrayFromVarargs.create(2, 1, 3);
InsertionSort.getInstance().sort(array, new DefaultComparator<Integer>());

See Also

Implementation


Copyright 2014 psjava team. View on GitHub