Tweaked palindrome challenge algorithm discussion.

This commit is contained in:
Donne Martin 2015-07-06 05:44:35 -04:00
parent 47e6a23dde
commit 8403fe5032

View File

@ -62,6 +62,8 @@
"## Algorithm\n", "## Algorithm\n",
"\n", "\n",
"* Reverse the linked list\n", "* Reverse the linked list\n",
" * Iterate through the current linked list\n",
" * Insert to front the current node into a new linked list\n",
"* Compare the reversed list with the original list\n", "* Compare the reversed list with the original list\n",
" * Only need to compare the first half\n", " * Only need to compare the first half\n",
"\n", "\n",