mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 09:58:03 +00:00
Tweaked palindrome challenge algorithm discussion.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user