- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
public class RandomSort { | |
public RandomSort(int[] i) { | |
int counter = 0; | |
System.out.println("I'll sort " + i.length + " elements..."); | |
while (!isSorted(i)) { | |
shuffle(i); | |
counter++; | |
} | |
System.out.println("Solution found! (shuffled " + counter + " times)"); |