You are viewing a single comment's thread. Return to all comments →
can u pls tellme what's wrong with my code?
def circularArrayRotation(a, k, queries): b=[] l=[] n=len(a) b=a[n-k:]+a[:n-k] for i in (queries): c=b[i] l.append(c) return l
Seems like cookies are disabled on this browser, please enable them to open this website
Circular Array Rotation
You are viewing a single comment's thread. Return to all comments →
can u pls tellme what's wrong with my code?