A.O(n)
B.O(n/2)
C.O(1)
D.O(n2)
第3题
第4题
A.q=p->next;q->next=p->next;
B.q=p->next;p->next=q;
C.q=p->next;p->next=q->next;
D.p->next=p->next->next;p->next=p;
第5题
A.O(1)
B.O(n)
C.O(n2)
D.O(nlog2n)
第6题
A.s->next=p
B.s=p->next
C.s=p
D.s->next=p->next
第8题
A、p=p->next;free(p);
B、p->next=p->next->next;free(p);
C、q=p->nextq->next=p->next;free(q);
D、q=p->next;p->next=q->next;free(q);
第10题
A.s->next=p->next.p->next=s
B.p->next=s,s->next=p->next
C.s->next=p->next,p->next=s,交换p->data和s->data
D.p=s,s->next=p
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!