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