From 20497bb0447bdf44369a1b6f0305864ef93b4e5f Mon Sep 17 00:00:00 2001 From: Mahmoud Aslan Date: Mon, 27 Aug 2018 16:37:25 +0300 Subject: [PATCH] Fixed Contains operation pseudo code (#180) --- src/data-structures/linked-list/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data-structures/linked-list/README.md b/src/data-structures/linked-list/README.md index b0e5eaf9..95fa7d66 100644 --- a/src/data-structures/linked-list/README.md +++ b/src/data-structures/linked-list/README.md @@ -46,7 +46,7 @@ Contains(head, value) value is the value to search for Post: the item is either in the linked list, true; otherwise false n ← head - while n = ø and n.value = value + while n != ø and n.value != value n ← n.next end while if n = ø