We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63f5a27 commit 194f213Copy full SHA for 194f213
src/data-structures/doubly-linked-list/README.md
@@ -66,14 +66,14 @@ Remove(head, value)
66
return true
67
end if
68
n ← head.next
69
- while n = ø and value !== n.value
+ while n != ø and value !== n.value
70
n ← n.next
71
end while
72
if n = tail
73
tail ← tail.previous
74
tail.next ← ø
75
76
- else if n = ø
+ else if n != ø
77
n.previous.next ← n.next
78
n.next.previous ← n.previous
79
@@ -89,7 +89,7 @@ ReverseTraversal(tail)
89
Pre: tail is the node of the list to traverse
90
Post: the list has been traversed in reverse order
91
n ← tail
92
- while n = ø
+ while n != ø
93
yield n.value
94
n ← n.previous
95
0 commit comments