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