You are viewing a single comment's thread. Return to all comments →
for this case you can check for d>n and d = d%n then d will be in range of 0 to n and the above solution will work perfectly :)
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 →
for this case you can check for d>n and d = d%n then d will be in range of 0 to n and the above solution will work perfectly :)