mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-05 08:26:14 +08:00
fix: 0->ø (#486)
This commit is contained in:
@ -101,7 +101,7 @@ Traverse(head)
|
|||||||
Pre: head is the head node in the list
|
Pre: head is the head node in the list
|
||||||
Post: the items in the list have been traversed
|
Post: the items in the list have been traversed
|
||||||
n ← head
|
n ← head
|
||||||
while n != 0
|
while n != ø
|
||||||
yield n.value
|
yield n.value
|
||||||
n ← n.next
|
n ← n.next
|
||||||
end while
|
end while
|
||||||
|
Reference in New Issue
Block a user