在循环双链表的P所指结点之后插入S所指结点的操作是( )
A: P->right=S;P->fight->left=S:S->left=P;S->fight=P->right
B: P->fight=S;S->left=P;P->fight->left=S;S->fight=P->fight
C: S->left=P;S->right=P->right;P->fight=S;P->right->left=S
D: S->left=P;S->right=P->right;P->right->left=S;P->right=S
A: P->right=S;P->fight->left=S:S->left=P;S->fight=P->right
B: P->fight=S;S->left=P;P->fight->left=S;S->fight=P->fight
C: S->left=P;S->right=P->right;P->fight=S;P->right->left=S
D: S->left=P;S->right=P->right;P->right->left=S;P->right=S
举一反三
- 在循环双链表的p所指结点之后插入s所指结点的操作是_____。 A: p->right=s; s->left=p; p->right->left=s; s=->right=p->right; B: p->right=s; p->right->left=s; s->left=p; s->right=p->right; C: s->left=p; s->right= p->right; p->right=s; p->right->left=s; D: s->left=p; s->right=p->right; p->right->left=s; p->right=s;
- 设指针变量p指向双向链表中结点A,指针变量s指向被插入的结点X,则在结点A的后面插入结点X的操作序列为( )。 A: p->right=s; s->left=p; p->right->left=s; s->right=p->right; B: s->left=p;s->right=p->right;p->right=s; p->right->left=s; C: p->right=s; p->right->left=s; s->left=p; s->right=p->right; D: s->left=p;s->right=p->right;p->right->left=s; p->right=s;
- 在循环双链表的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;
- 在循环双链表的p所指结点之后插入s结点的操作是( ) A: p->next=s; s->pre=p; p->next->pre=s; s->next=p->next; B: p->next=s; p->next->pre=s; s->pre=p; s->next=p->next; C: s->pre=p; s->next=p->next; p->next->pre=s; p->next=s; D: s->pre=p; s->next=p->next; p->next=s; p->next->pre=s;
- 在循环双链表的P所指节点之后插入s所指节点的操作是( ) A: p->next=s; s->prior=p; p->next->prior=s; s->next=p->next; B: p->next=s; p->next->prior=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=s;p->next->prior=s;