/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: // 两个有序链表排序 ListNode* merge2Lists(ListNode* p1,ListNode* p2){ // 针对两个特殊情况处理 if (p1==nullptr){ return p2; } if (...