Method Swap
Swap<T>(T[], Int32, Int32)
Swap values stored in slots i
and j
Declaration
public static void Swap<T>(T[] arr, int i, int j)
Parameters
Type | Name | Description |
---|---|---|
T[] | arr | |
System.Int32 | i | |
System.Int32 | j |
Type Parameters
Name | Description |
---|---|
T |