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.
Highest Value Palindrome
Highest Value Palindrome
Sort by
recency
|
518 Discussions
|
Please Login in order to post a comment
Python 3
Ruby
Ok, here is c++ code with tons of comments, since some people struggle with this...
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
Here is my C++ implementation. I tried to make an implementation easy to read. Hope it helps. Complexity is O(n).