You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ignore[w] = e.length - k +(w+1); is wrong
When Object arr[] = {12, 8, 11, 13, 10, 15, 14, 16, 20};
k=4, the result is wrong.
May be change into
ignore[w] = combination.length +(w);
The shifting ignored indices part has some bug. I also change it into
while(w>0){
if(w > 0){
ignore[w-1] = ignore[w]-1;
System.out.println(" **ignore[w-1]= "+ (ignore[w]-1));;
}
w--;
}
The text was updated successfully, but these errors were encountered:
ignore[w] = e.length - k +(w+1); is wrong
When Object arr[] = {12, 8, 11, 13, 10, 15, 14, 16, 20};
k=4, the result is wrong.
May be change into
ignore[w] = combination.length +(w);
The shifting ignored indices part has some bug. I also change it into
while(w>0){
if(w > 0){
ignore[w-1] = ignore[w]-1;
System.out.println(" **ignore[w-1]= "+ (ignore[w]-1));;
}
w--;
}
The text was updated successfully, but these errors were encountered: