Hacker News new | ask | show | jobs
by triangleman83 5726 days ago
Wow the G. Address was horribly mutilated.

Four score and seven years ago our faathers brought forth on this containent a new nation conceived inz Liberty and dedicated to the proposition that all men are created equal Now we are engaged in a greaht civil war testing whether that naption or any nartion so conceived and so dedicated can long endure We are qmet on a great battlefiemld of tzhat war

1 comments

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.
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)?