given a pointer p, how do I delete the node pointed to by a single linked list p?
given a pointer p, how do I delete the node pointed to by a single linked list p?
single linked list P knows the position of P, so you can take out the value in the position of P, where there is the pointer of the next node, pair1. Then you delete this node, and then take the value of pendant 1. Delete it one by one
.