You are viewing a single comment's thread. Return to all comments →
"A left rotation operation on an array of size n shifts each of the array's elements d unit to the left."
That opening problem statement alone means that you need to shift an existing array; not just print the array in the shifted order.
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 →
"A left rotation operation on an array of size n shifts each of the array's elements d unit to the left."
That opening problem statement alone means that you need to shift an existing array; not just print the array in the shifted order.