mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-05 16:36:41 +08:00
Add missing step (#345)
This commit is contained in:
@ -102,6 +102,7 @@ Remove(head, value)
|
|||||||
if n.next != ø
|
if n.next != ø
|
||||||
if n.next = tail
|
if n.next = tail
|
||||||
tail ← n
|
tail ← n
|
||||||
|
tail.next = null
|
||||||
end if
|
end if
|
||||||
n.next ← n.next.next
|
n.next ← n.next.next
|
||||||
return true
|
return true
|
||||||
|
Reference in New Issue
Block a user