你可能感兴趣的试题
p^.next:=head*.next;head^.next:=p p^.next:=head^.next;head:=p p*.next:=head;head:=p head*.next:=head; p:=head
s↑.link=p↑.link; p↑.link:=s q↑.link;=s; s↑.link:=p p↑:link:=s↑.link; s↑.link=p p↑.link=s; s↑.link:=q
s↑.link:=p↑.link;p↑.link:=s q↑.link:=s;s↑.link:=p p↑.link:=s↑.link;s↑.link:=p p↑.link:=s;s↑.link:=q
p->next=q->next; p->next=P->next->next; p->next=r; p=q->next;
s→right指向的节点一定是s所指节点的直接后继节点 s→left指向的节点一定是s所指节点的直接前驱节点 从s所指节点出发的right链可能构成环 s所指节点的left和right指针一定指向不同的节点
q:=p↑.link;p↑.link:=q↑.link p↑.link:=q↑.link;q↑.link:=p↑.link q↑.link:=p;p↑.link:=q q↑.link:=p↑.link;p↑.link:=q
s↑.link:=p↑.link;p↑.link:=s q↑.link:=s;s↑.link:=p p↑.link:=s↑.link;s↑.link:=p p↑.link:=s;s↑.link:=q
t->prior->next=t->next;t->next->prior=t->prior; t->prior->prior=t->prior;t->next->next=t->next; t->prior->next=t->prior;t->next->prior=t->next; t->prior->prior=t->next;t->next->prior=t->prior;
判断该节点是否是头节点 删除该节点 将前1节点的指针指向被删除节点的后1节点 将被删除节点的指针设为空
p->next=q->next; p->next=P->next->next; p->next=r; p=q->next;
p->next=q->next; p->next=P->next->next; p->next=r; p=q->next;
s↑.link:=p↑.link;p↑.link:=s q↑.link:=s;s↑.link:=p p↑.link:=s↑.link;s↑.link:=p p↑.link:=s;s↑.link:=q
p:=p^.next q:=p^.next;p^.next:=q^.next p^.next:=q;q^.next:=p p:=q^.next;q^.next=p
q:=p↑.link;p↑.link:=q↑.link p↑.link:=q↑.link;q↑.link:=p↑.link q↑.link:=p;p↑.link:=q q↑.link:=p↑.link;p↑.link:=q