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
|
986 Discussions
|
Please Login in order to post a comment
This problem reminds me of how we sometimes make small changes for love—just like in frases de amor para mi esposo, where every word matters to make someone feel special. In this challenge, each letter change counts too, turning the message into something more beautiful... like a romantic palindrome!
Here is a python solution in O(n) time and O(1) space:
C++
Java:
Here is my c++ solution to the problem, explanation here : https://youtu.be/gIUqS2xO6lg