/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */class Solution { public://vector数组存储+反向赋值 ListNode* ReverseList(ListNode* head) { // write code here if(!head || !head->next) return head; ListNode* p,*r; ...