Some error occured while loading page for you. Please try again.
We use cookies to ensure you have the best browsing experience on our website.
Please read our cookie policy for more information about how we use cookies.
staticintfreq[];// Complete the gameOfThrones function below.staticStringgameOfThrones(Strings){freq=newint[27];charch[]=s.toCharArray();for(chartmp:ch){inteq=(int)tmp-96;++freq[eq];}booleanoddFound=false;for(inti=0;i<27;i++){if(freq[i]%2==1){if(!oddFound)oddFound=true;elsereturn"NO";}else{//even freqs}}return"YES";}//func
My code in Java7
Add Reply Preview cancel