Class InsertionSort<T>
An insertion sort implementation.
Inherited Members
Namespace: Advanced.Algorithms.Sorting
Assembly: Advanced.Algorithms.dll
Syntax
public class InsertionSort<T>
where T : IComparable
Type Parameters
Name | Description |
---|---|
T |
Methods
Sort(T[])
Time complexity: O(n^2).
Declaration
public static T[] Sort(T[] array)
Parameters
Type | Name | Description |
---|---|---|
T[] | array |
Returns
Type | Description |
---|---|
T[] |