We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The Love-Letter Mystery
The Love-Letter Mystery
Sort by
recency
|
971 Discussions
|
Please Login in order to post a comment
Simple C Solution
Here is my c++ solution to the problem, explanation here : https://youtu.be/gIUqS2xO6lg
Java
return sum(abs(ord(s[i]) - ord(s[-i -1])) for i in range(int(len(s) / 2)))
JS: