See More

public class permutations { public static void generate(int[] arr, int k){ if(k ==1) check(arr); else{ generate(arr, k-1); for(int i=0;i