F
FIFO
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: abcdefghijklmnopqrstuvwxyz
array after the rotation: zabcdefghijklmnopqrstuvwxy
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: abcdefghijklmnopqrstuvwxyz
array after the rotation: zabcdefghijklmnopqrstuvwxy
Thaks for all ideas