Open thafnhlong opened 2 years ago
p => pointer to ll int cur = p.data; p=p.next; ret => new P(cur); tmp = ret;
while(p!=null){ if(cur != p.data): cur = p.data; tmp.next=new P(cur); tmp=tmp.next; p=p.next; }
p => pointer to ll int cur = p.data; p=p.next; ret => new P(cur); tmp = ret;
while(p!=null){ if(cur != p.data): cur = p.data; tmp.next=new P(cur); tmp=tmp.next; p=p.next; }