You are viewing a single comment's thread. Return to all comments →
idem, just a little variation : kifs
static int[] rotLeft(int[] a, int d) { int length = a.length; int[] b = new int[length]; System.arraycopy(a, d, b, 0, length - d); System.arraycopy(a, 0, b, length - d, d); return b; }
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays: Left Rotation
You are viewing a single comment's thread. Return to all comments →
idem, just a little variation : kifs