Monday, September 13, 2010

Rotation of a string

We have a string "ABCDEFGH". Write a program that rotates the string to make it "DEFGHABC". We have rotated the string by 3. You can not use any extra space except a few constant length primitive ones.

1 comment: