Skip to content

Instantly share code, notes, and snippets.

@arjunsk
Created August 17, 2018 19:31
Show Gist options
  • Save arjunsk/bcf94dc449bc598d55c6e2c0ff8d726e to your computer and use it in GitHub Desktop.
Save arjunsk/bcf94dc449bc598d55c6e2c0ff8d726e to your computer and use it in GitHub Desktop.
package algorithms;
import java.util.Arrays;
// Implement parallel sort, for arr.lenght >= 2500
public class LargerSorter implements ISorter{
@Override
public int[] sort(int arr[]){
System.out.println("Large sort used.");
Arrays.parallelSort(arr);
return arr;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment