Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a8d7435

Browse files
committedAug 30, 2018
Fix LinkedList pseudo-code (issue trekhleb#191).
1 parent af64d12 commit a8d7435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/data-structures/linked-list/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ Remove(head, value)
7676
end if
7777
return true
7878
end if
79-
while n.next = ø and n.next.value = value
79+
while n.next != ø and n.next.value != value
8080
n ← n.next
8181
end while
82-
if n.next = ø
82+
if n.next != ø
8383
if n.next = tail
8484
tail ← n
8585
end if

0 commit comments

Comments
 (0)
Please sign in to comment.