You are viewing a single comment's thread. Return to all comments →
Long live Python and its negative indexes ;)
When I tried to solve this using negative indexes, i got a runtime error on test case 4. Am I the only one who got it from 4??
Me too. I'm so confused.
Me too bro for 4th test case :)
i don't know if you'll be notified from the comment I made "before" in the thread, so i just drop this here. I replied to koreanmj1991
no one said that k (number of rotation) < n (size of array) :)
TC4 has this exact problem.
k=k%n at the very beginning should do the trick