greggreggreg7/palindromizer — pull request #1 by darius (2013-04-04 20:31:41+00:00)
Title: Small cleanups, untested

Here's another idea I'm not going to pursue. What palindromize() does is a variation of the standard problem of finding minimal edits that convert one string to another: just ignoring case and adjusting for one string being reversed. So I would use an existing library function (hopefully) or code up a standard diff algorithm (with a pointer to whichever one I choose). Some links: http://ejohn.org/projects/javascript-diff-algorithm/ http://stackoverflow.com/questions/3053587/javascript-based-diff-utility# http://code.google.com/p/google-diff-match-patch/