mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-05 17:08:02 +00:00
Tweaked palindrome challenge algorithm discussion.
This commit is contained in:
@@ -62,6 +62,8 @@
|
||||
"## Algorithm\n",
|
||||
"\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",
|
||||
" * Only need to compare the first half\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user