We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hello, thank you for sharing your approach with us. I have a question :
Is using auxiliary array allowed? In the problem description we can read the following : "A left rotation operation on an array of size n shifts each of the array's elements unit to the left...". Please note the word shifts. Because of that, I assume that we must operate on only 1 array. Is my assumption wrong?
Cookie support is required to access HackerRank
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 →
Hello, thank you for sharing your approach with us. I have a question : Is using auxiliary array allowed? In the problem description we can read the following : "A left rotation operation on an array of size n shifts each of the array's elements unit to the left...". Please note the word shifts. Because of that, I assume that we must operate on only 1 array. Is my assumption wrong?