You are viewing a single comment's thread. Return to all comments →
Add one line k=k%n; before second loop start then you'll pass all the test.
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
Add one line k=k%n; before second loop start then you'll pass all the test.