mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Tweaked palindrome challenge algorithm discussion.
This commit is contained in:
parent
47e6a23dde
commit
8403fe5032
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user