4 ms·
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.
by rwalker 16y 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.
- Cushman 16y agoNever 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
- Natsu 16y agoWhy 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)?