I’m looking for a way to rotate a string to the left N times. Here are some examples:
Let the string be abcdef
- if I rotate it
1time I want
bcdefa - if I rotate it
2time I want
cdefab - if I rotate it
3time I want
defabc - .
- .
- If I rotate the string its string
length times, I should get back the
original string.
1 Answer