You are viewing a single comment's thread. Return to all comments →
Very easy C++ solution...
int anagram(string s) { int k=s.size(); int l=s.size()/2; int p=0; if(s.size()%2==0){ for(int i=0;i return l; } else return -1; }
Seems like cookies are disabled on this browser, please enable them to open this website
Anagram
You are viewing a single comment's thread. Return to all comments →
Very easy C++ solution...
int anagram(string s) { int k=s.size(); int l=s.size()/2; int p=0; if(s.size()%2==0){ for(int i=0;i return l; }
else return -1; }