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
.
原文链接http://blog.youkuaiyun.com/crazy__chen/article/details/46377149
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
.
原文链接http://blog.youkuaiyun.com/crazy__chen/article/details/46377149