public interface Sorter
Anything that can sort an array of integers between two indices
Method Summary | |
---|---|
int[] |
sort(int[] arr,
int left,
int right)
Sort an array between left and right indices |
Method Detail |
---|
int[] sort(int[] arr, int left, int right)
arr
- the array to sortleft
- the left index for sortingright
- the right index for sorting (exclusive)