题目
A.p -> prior = q;q-> next=p;p -> prior ->next=q; q ->prior= p -> prior;
B.q ->prior= p -> prior;p -> prior ->next=q;q-> next=p;p -> prior = q->next;
C.q-> next=p;p -> next=q;q-> prior ->next= q;q-> next=p;
D.p -> prior ->next=q;q-> next=p;q -> prior = p->prior;p -> prior = q;
第1题
A.删除单链表中的第一个元素
B.删除单链表的尾节点
C.在单链表中第一个元素前插入一个新节点
D.在单链表最后一个元素后插入一个新节点
第2题
A.单链表
B.仅有头节点指针的循环单链表
C.双链表
D.仅有尾指针的循环单链表
第3题
A.p -> prior –>next= p-> next;p ->next-> prior = p -> prior;
B.p ->prior= p -> prior -> prior;p -> prior ->prior = p;
C.p-> next -> prior = p;p-> next=p-> next-> next;
D.p -> next= p->prior -> prior;p-> prior = p->prior->prior;
第5题
A.s->next = p+1; p->next=s;
B.(*p).next=s; (*s).next=(*p).next;
C.s->next=p->next; p->next=s->next;
D.s->next=p->next; p->next=s;
第6题
A.s->next=p->next ; p->next=s;
B.q->next=s ; s->next=p;
C.p->next=s->next ; s->next=p;
D.p->next=s ; s->next=q;
第7题
A.q->next=p->next; p->next=q;
B.p->next=q->next; q=p;
C.q->next=p->next; p->next=q;
D.p->next=q->next; q->next=p;
第9题
A.s -> next = p -> next; p -> next = s;
B.s -> next = q -> next; p -> next = s;
C.s -> next = q -> next; q -> next = s;
D.q -> next = s; s -> next = p;
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!