Given a sorted linked list, delete all duplicates such that each element appear only once.
For
example,
Given 1->1->2
,
return 1->2
.
Given 1->1->2->3->3
,
return 1->2->3
.
Remove Duplicates from Sorted List,布布扣,bubuko.com
Remove Duplicates from Sorted List
原文:http://www.cnblogs.com/erictanghu/p/3759528.html