A. n/2,位置 B. n,位置 C. n+1, 位置 D. (n+1)/2,
A. (4)(1) B. (1)(4) C. (5)(6) D. (6)(5)
A. O(1)O(n) B. O(n)O(n) C. O(1)O(1) D. O(n)O(1)
A. n B. n/2 C. (n+1)/2 D. (n-1)/2
A. q->next=p->next;p->next=q; B. p->next=q; q->next=p->next; C. q->next=p; p->next=q; D. p->next=q; q->next=p;
A. s->next=s,last=s,last->next=NULL; B. last->next=s,s->next=NULL,last=s; C. s->next=NULL, last->next=s, s=last; D. s->next=last, last->next=NULL,last=s;
A. p->Rlink=s; s->Llink=p; (p->Rlink)->Llink=s; s->Rlink=p->Rlink; B. s->Llink=p; s->Rlink=p->Rlink; p->Rlink=s; p->Rlink->Llink=s; C. p->Rlink=s; p->Rlink->Llink=s; s->Llink=p; s->Rlink=p->Rlink; D. s->Llink=p; s->Rlink=p->Rlink; p->Rlink->Llink=s; p->Rlink=s;