mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-27 15:41:16 +08:00
parent
9111568fc0
commit
5667cfb550
@ -61,7 +61,8 @@ end Contains
|
|||||||
```text
|
```text
|
||||||
Remove(head, value)
|
Remove(head, value)
|
||||||
Pre: head is the head node in the list
|
Pre: head is the head node in the list
|
||||||
Post: value is the value to remove from the list, true, otherwise false
|
value is the value to remove from the list
|
||||||
|
Post: value is removed from the list, true, otherwise false
|
||||||
if head = ø
|
if head = ø
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
Loading…
Reference in New Issue
Block a user