You are viewing a single comment's thread. Return to all comments →
C++ solution :
int theLoveLetterMystery(string s) { int sum=0; for (int i=0, j=s.size()-1;i<j;i++, j--) sum+=abs(s[i]-s[j]); return sum; }
The Love-Letter Mystery
You are viewing a single comment's thread. Return to all comments →
C++ solution :