注意:此页面搜索的是所有试题
题目内容
(兰州理工大学-算法与数据结构)
4 . 在双向循环链表中,在p所指的结点之后插入s指针所指的结点,其操作是( )。
A.p->next=s; s->prior=p; p->next->prior=s; s->next=p->next;
B.s->prior=p; s->next=p->next; p->next=s; p->next->prior=s;
C.p->next=s; p->next->prior=s; s->prior=p; s->next=p->next;
D.s->prior=p; s->next=p->next; p->next->prior=s; p->next=s;
A.p->next=s; s->prior=p; p->next->prior=s; s->next=p->next;
B.s->prior=p; s->next=p->next; p->next=s; p->next->prior=s;
C.p->next=s; p->next->prior=s; s->prior=p; s->next=p->next;
D.s->prior=p; s->next=p->next; p->next->prior=s; p->next=s;
参考答案