Hacker News new | ask | show | jobs
by rwalker 5731 days ago
This was intentional - we had to tie break the longest palindrome and we didn't want a quick diff to be able to see what we changed.
2 comments

Never mind that finding the actual text, removing the spaces and caps, and running diff would probably take longer than coding and executing a brute force algorithm :P
Why not ask for the rightmost palindrome, then? Just to make it a tiny bit more complex (not that it's very hard to iterate backwards)?