Class SortAlmostSorted
Inherited Members
Namespace: Advanced.Algorithms.Sorting
Assembly: Advanced.Algorithms.dll
Syntax
public class SortAlmostSorted
Methods
Sort(Int32[], Int32)
Sort the given input where elements are misplaced almost by a distance k
Declaration
public static int[] Sort(int[] input, int k)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32[] | input | |
| Int32 | k |
Returns
| Type | Description |
|---|---|
| Int32[] |