You are viewing a single comment's thread. Return to all comments →
Is calculation really required ?
for(int i=k; i < a.length; i++){ System.out.print(a[i] + " "); } for(int i=0; i < k; i++){ System.out.print(a[i] + " "); }
Arrays: Left Rotation
You are viewing a single comment's thread. Return to all comments →
Is calculation really required ?