Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void FStergeDuplicate(Nod *&L)
- {
- Nod *p,*q;
- p=L;
- if(p!=NULL)
- q=p->next;
- while(q!=NULL)
- {
- if(p->val==q->val)
- p->next=q->next;
- else
- p=p->next;
- q=p->next;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement