mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
tweaked linked list challenge algorithm discussion.
This commit is contained in:
parent
63bf44efac
commit
29685c7b35
|
@ -103,7 +103,7 @@
|
|||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(1)\n",
|
||||
"* Space: O(1), a new node is added\n",
|
||||
"* Space: O(1)\n",
|
||||
"\n",
|
||||
"### Append\n",
|
||||
"\n",
|
||||
|
@ -117,7 +117,7 @@
|
|||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n)\n",
|
||||
"* Space: O(1), a new node is added\n",
|
||||
"* Space: O(1)\n",
|
||||
"\n",
|
||||
"### Find\n",
|
||||
"\n",
|
||||
|
@ -129,7 +129,7 @@
|
|||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n)\n",
|
||||
"* Space: In-place\n",
|
||||
"* Space: O(1)\n",
|
||||
"\n",
|
||||
"### Delete\n",
|
||||
"\n",
|
||||
|
@ -143,7 +143,7 @@
|
|||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n)\n",
|
||||
"* Space: In-place\n",
|
||||
"* Space: O(1)\n",
|
||||
"\n",
|
||||
"### Length\n",
|
||||
"\n",
|
||||
|
@ -152,7 +152,7 @@
|
|||
" \n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n)\n",
|
||||
"* Space: In-place\n",
|
||||
"* Space: O(1)\n",
|
||||
"\n",
|
||||
"### Print\n",
|
||||
"\n",
|
||||
|
@ -161,7 +161,7 @@
|
|||
" \n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n)\n",
|
||||
"* Space: In-place"
|
||||
"* Space: O(1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user