We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db83ec2 commit 3eab9eeCopy full SHA for 3eab9ee
src/data-structures/doubly-linked-list/README.md
@@ -64,7 +64,7 @@ Remove(head, value)
64
return true
65
end if
66
n ← head.next
67
- while n = ø and value = n.value
+ while n = ø and value !== n.value
68
n ← n.next
69
end while
70
if n = tail
@@ -100,7 +100,7 @@ end Reverse Traversal
100
101
| Access | Search | Insertion | Deletion |
102
| :-------: | :-------: | :-------: | :-------: |
103
-| O(n) | O(n) | O(1) | O(1) |
+| O(n) | O(n) | O(1) | O(n) |
104
105
### Space Complexity
106
0 commit comments