Fixed Contains operation pseudo code (#180)

This commit is contained in:
Mahmoud Aslan 2018-08-27 16:37:25 +03:00 committed by Oleksii Trekhleb
parent b1f31cd067
commit 20497bb044

View File

@ -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 = ø