You are viewing a single comment's thread. Return to all comments →
"this is working but time limit exceeds can u help me with this!!"
function anagram(s) { var l=s.length,c=0,c1,c2 if(l%2==0){ c1=s.slice(0,l/2).split("") c2=s.slice(l/2).split("") }else{ return "-1" } var l2=c1.length for(var i=0;i
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 →
"this is working but time limit exceeds can u help me with this!!"
function anagram(s) { var l=s.length,c=0,c1,c2 if(l%2==0){ c1=s.slice(0,l/2).split("") c2=s.slice(l/2).split("") }else{ return "-1" } var l2=c1.length for(var i=0;i