/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solution { public: /** * * @param head ListNode类 * @return ListNode类 */ ListNode* deleteDuplicates(ListNode* head) { if(!head || !head->next) return head; auto dummy=new ListNode(1010); dummy->next=head; auto q=dummy, p=...