mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 02:48:02 +00:00
Merge branch 'reverse-linked-is-n' of git://github.com/jstnlef/interactive-coding-challenges into jstnlef-reverse-linked-is-n
* 'reverse-linked-is-n' of git://github.com/jstnlef/interactive-coding-challenges: the Time complexity for reversing a linked list is O(n)
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
" * Only need to compare the first half\n",
|
" * Only need to compare the first half\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Complexity:\n",
|
"Complexity:\n",
|
||||||
"* Time: O(1)\n",
|
"* Time: O(n)\n",
|
||||||
"* Space: O(n)\n",
|
"* Space: O(n)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Note:\n",
|
"Note:\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user