From a8d7435b8d9a262938622c330f05de5637d98c35 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Thu, 30 Aug 2018 08:04:47 +0300 Subject: [PATCH] Fix LinkedList pseudo-code (issue #191). --- src/data-structures/linked-list/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data-structures/linked-list/README.md b/src/data-structures/linked-list/README.md index 95fa7d66..96527d35 100644 --- a/src/data-structures/linked-list/README.md +++ b/src/data-structures/linked-list/README.md @@ -76,10 +76,10 @@ Remove(head, value) end if return true end if - while n.next = ø and n.next.value = value + while n.next != ø and n.next.value != value n ← n.next end while - if n.next = ø + if n.next != ø if n.next = tail tail ← n end if