Class Insertionsort

java.lang.Object
algorithmcomparison.Insertionsort

public class Insertionsort extends Object
Insertionsort
  • Constructor Details

    • Insertionsort

      public Insertionsort()
  • Method Details

    • insertionsort

      public static int[] insertionsort(int[] arr)
      Sorts the given dataset using insertion sort
      Parameters:
      arr - The unsorted dataset
      Returns:
      sorted The sorted dataset