diff --git a/src/data-structures/linked-list/README.md b/src/data-structures/linked-list/README.md index 656ad68f..f30dbffa 100644 --- a/src/data-structures/linked-list/README.md +++ b/src/data-structures/linked-list/README.md @@ -104,8 +104,9 @@ Remove(head, value) if n.next = tail tail ← n tail.next = null + else + n.next ← n.next.next end if - n.next ← n.next.next return true end if return false