diff --git a/Check if a given string is a rotation of a palindrome b/Check if a given string is a rotation of a palindrome new file mode 100644 index 000000000..4fff2b309 --- /dev/null +++ b/Check if a given string is a rotation of a palindrome @@ -0,0 +1,38 @@ +// { Driver Code Starts +#include +using namespace std; + + + // } Driver Code Ends + +class Solution{ +public: + + int isRotatedPalindrome(string s) + { + map m; + for(int i=0;i1){return 0;} + return 1; + } +}; + +// { Driver Code Starts. +int main() +{ + int t; + cin>>t; + while (t--) { + string s; + cin>>s; + Solution ob; + cout<