Delete duplicate-value nodes from a sorted linked list