You are viewing a single comment's thread. Return to all comments →
Hey could you help me confirm if the time complexity of my code is a constant?
n, r = map(int, input().split()) a = list(map(int, input().split())) slice1 = a[:r] slice2 = a[r:] a = slice2 + slice1 print(*a)
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
Hey could you help me confirm if the time complexity of my code is a constant?