You are viewing a single comment's thread. Return to all comments →
My Java Solution
static int theLoveLetterMystery(String s) { int oper=0, n=s.length(); for(int i=0,j=n-1 ; i<n/2 ; i++,j--) oper+=Math.abs(s.charAt(i)-s.charAt(j)); return oper; }
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 →
My Java Solution