English, asked by skselva, 10 months ago

a thing which rotates(palindrome words)​

Answers

Answered by riya8287356788
1

Answer:

Given a string, check if it is a rotation of a palindrome. For example your function should return true for “aab” as it is a rotation of “aba”.

Examples:

Input: str = "aaaad"

Output: 1

// "aaaad" is a rotation of a palindrome "aadaa"

Input: str = "abcd"

Output: 0

// "abcd" is not a rotation of any palindrom

Similar questions