Overwrite node's value [mp]
Micro pattern¶
Description¶
Replace a node's payload with a successor's when direct replacement of the node is inconvenient.
Problems¶
- AVL trees (DSA)
- 237. Delete Node in a Linked List (Top Easy)
Replace a node's payload with a successor's when direct replacement of the node is inconvenient.