Created
August 17, 2018 19:31
-
-
Save arjunsk/bcf94dc449bc598d55c6e2c0ff8d726e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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