• 2022-07-29
    在循环双链表的p所指结点后插入s所指结点的操作是( )。
    A: s->prior=p; s->next=p->next; p->next=s; p->next->prior=s;
    B: p->next=s; p->next->prior=s; s->prior=p; s->next=p->next;
    C: p->next=s; s->prior=p; p->next->prior=s; s->next=p->next;
    D: s->prior=p; s->next=p->next; p->next->prior=s; p->next=s;
  • 举一反三