For example: In the word sample
with 'p, we get the right rotated word as
"plesar". There are six such right rotations of
"sample" induding itself.
The inputs to the function isSameReflection
consists of two strings, word1 and word2.
The function returns 1 if word 1 and word2 are
right rotations of the same word and -1 if they
are not. Both word1 and word2 will strictly
contain characters between 'a-z (lower case
letters).
Useful commands:
• strlen() is used to calculate the
length of the string. The statement -
int len = strlen(str);
returns the length of the string str.
Answers
Answered by
1
please mark me as Brain list
please mark me as Brain list
Answered by
0
Answer:
please mark me as brilliant answer
Similar questions