Computer Science, asked by lovelysparkle9, 3 months ago

Charlie has a magic mirror. The mirror shows right rotated versions of a given word
To generate different right-rotations of a word, write the word in a circle in clockwise order, then start
reading from any given character in clockwise order till you have covered all the characters
For example, in the word "sample'if we start with 'p. we get the right rotated word as plesary. There
are six such right rotations of "sample including itself
The inputs to the function is SameReflection consists of two strings, wordland word?
The function returns 1 if wordland word are right rotations of the same word and -1 if they are not
Both wordland word2 will strictly contain characters between a'-Z (lower case letters​

Answers

Answered by Sahilnain41
0

Answer:

dgdfhbcfhhxfhbcxxbbvxx

Explanation:

dfhfgjjhcfgdcvh

Similar questions