Hi,
Can you suggest me a (time) efficient way to "rotate" a array of char?
In particular:
- The array of char have a fixed (26) length
- The array of char will not be modified in the code
- The rotation is by only one char to the right side
Example:
array: abcdefghijklmno pqrstuvwxyz
array after the rotation: zabcdefghijklmn opqrstuvwxy
Thaks for all ideas ;)
Can you suggest me a (time) efficient way to "rotate" a array of char?
In particular:
- The array of char have a fixed (26) length
- The array of char will not be modified in the code
- The rotation is by only one char to the right side
Example:
array: abcdefghijklmno pqrstuvwxyz
array after the rotation: zabcdefghijklmn opqrstuvwxy
Thaks for all ideas ;)
Comment