You are viewing a single comment's thread. Return to all comments →
(i + shift) % lenght Should be enough
Arrays: Left Rotation
You are viewing a single comment's thread. Return to all comments →
(i + shift) % lenght Should be enough