Unlink a node in two writes.
transcript
You hold one node. You must remove it. A singly linked list must walk. A two-way list does not. Think of a carriage in a train. A million nodes. Same cost.
A list with two pointers. Each node knows both neighbours. You hold twenty. Remove it. Four nodes, two pointers each. You are holding the node.
Ten is before twenty. Point it past twenty. Ten now reaches thirty. One write. Nobody walks from the head. One write is not enough.
Thirty is after twenty. Point it back past twenty. Twenty is out. Two writes. Both neighbours now agree. Now the list is whole.
Two writes. No walk. Any length. Constant time. The list may hold a million nodes. Compare a walk: a million hops.
Join the two neighbours. Two writes. No walk. Try it in the sandbox. Constant time, every time. Two neighbours, two writes. Full breakdown in the lecture.