"A man, a plan, a canal, Panama"
"Madam, I'm Adama"
"Madam, in Eden I'm Adam"
etc.
To test the function I also use the one of the longest palendromes ever created - a 15,139 word palendrome at http://norvig.com/pal1txt.html which I copied into a file and read into a string.
Here is the code:
2 comments:
Hi Andew,
What font did u use in your editor? Looks nice.
Hi Ren, I use http://alexgorbatchev.com/wiki/SyntaxHighlighter to format code in my blog because I think it looks pretty good and also comes with the handy 'copy' and 'print' pop-up when you hover the mouse over the code. All you have to do is paste some JavaScript into your HTML template that you are using on blogspot. If you have any problems let me know :-)
Post a Comment