/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* deleteDuplicates(ListNode* head) {
ListNode *p=head;
if(head==<
Leetcode 删除排序链表中的重复元素
最新推荐文章于 2020-05-28 18:10:09 发布