You are viewing a single comment's thread. Return to all comments →
why do we have to use (k%n) instead of just k i.e. (n-k+m)? All TCs except for TC#4 succeed with k.
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
why do we have to use (k%n) instead of just k i.e. (n-k+m)? All TCs except for TC#4 succeed with k.