class Solution { public: ListNode* ReverseList(ListNode* head) { // 1.如果头节点为空,或者只有1个节点,则无需排序 if ( head == nullptr || head->next == nullptr ) return head; // 2.新建标记节点 ListNode * p = head->next, * q = head->next; // 3.断开链表,一分为二 head->n...