1 p->next=p->next->next;
2 q=head->next;
while(q&&q->next!=p) q=q->next;
q->next=p->next;
3 p=head;
while(p->next->data==x){p=p->next; printf("yes");return;}
printf("no");
1 p->next=p->next->next;
2 q=head->next;
while(q&&q->next!=p) q=q->next;
q->next=p->next;
3 p=head;
while(p->next->data==x){p=p->next; printf("yes");return;}
printf("no");