Interface Sorter


public interface Sorter

Anything that can sort an array of integers between two indices

Version:
July 2005
Author:
Todd A. Whittaker

Method Summary
 int[] sort(int[] arr, int left, int right)
          Sort an array between left and right indices
 

Method Detail

sort

int[] sort(int[] arr,
           int left,
           int right)
Sort an array between left and right indices

Parameters:
arr - the array to sort
left - the left index for sorting
right - the right index for sorting (exclusive)
Returns:
the sorted array