You are viewing a single comment's thread. Return to all comments →
in Java
int opr=0 for(int i=0;i<s.length()/2;i++) opr=opr+Math.abs(s.charAt(i)-s.charAt(s.length()-1-i)); return opr;
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 →
in Java