You are viewing a single comment's thread. Return to all comments →
my one liner solution
return a[d:] + a[:d]
where a is the arraya and d is the number of rotation
Arrays: Left Rotation
You are viewing a single comment's thread. Return to all comments →
my one liner solution
return a[d:] + a[:d]
where a is the arraya and d is the number of rotation