You are viewing a single comment's thread. Return to all comments →
static int[] rotLeft(int[] a, int d) { //d= d%5; int [] r = new int[a.length];
static int[] rotLeft(int[] a, int d) { //d= d%5;
int [] r = new int[a.length];
for(int i=0; i<a.length; i++){ r[i]= a[(i+d)%5]; } return r; }
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →