You are viewing a single comment's thread. Return to all comments →
int theLoveLetterMystery(string s) {
int count=0; i=0, j=s.length()-1; while(i<j){ count += std::abs(int(s[i++]) - int(s[j--])); } return count;
}
Seems like cookies are disabled on this browser, please enable them to open this website
The Love-Letter Mystery
You are viewing a single comment's thread. Return to all comments →
int theLoveLetterMystery(string s) {
}