Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a8d7435

Browse files
committed
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‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /